private OutputStream _get_homeHandle(
     org.omg.CORBA_2_3.portable.InputStream in, ResponseHandler reply) throws Throwable {
   HomeHandle result = target.getHomeHandle();
   OutputStream out = reply.createReply();
   Util.writeAbstractObject(out, result);
   return out;
 }
Exemplo n.º 2
0
 public void remove(Handle arg0) throws RemoteException, RemoveException {
   while (true) {
     if (!Util.isLocal(this)) {
       InputStream in = null;
       try {
         try {
           OutputStream out = _request("remove__javax_ejb_Handle", true);
           Util.writeAbstractObject(out, arg0);
           _invoke(out);
           return;
         } catch (ApplicationException ex) {
           in = (InputStream) ex.getInputStream();
           String id = in.read_string();
           if (id.equals("IDL:javax/ejb/RemoveEx:1.0")) {
             throw (RemoveException) in.read_value(RemoveException.class);
           }
           throw new UnexpectedException(id);
         } catch (RemarshalException ex) {
           continue;
         }
       } catch (SystemException ex) {
         throw Util.mapSystemException(ex);
       } finally {
         _releaseReply(in);
       }
     } else {
       ServantObject so = _servant_preinvoke("remove__javax_ejb_Handle", javax.ejb.EJBHome.class);
       if (so == null) {
         continue;
       }
       try {
         Handle arg0Copy = (Handle) Util.copyObject(arg0, _orb());
         ((javax.ejb.EJBHome) so.servant).remove(arg0Copy);
         return;
       } catch (Throwable ex) {
         Throwable exCopy = (Throwable) Util.copyObject(ex, _orb());
         if (exCopy instanceof RemoveException) {
           throw (RemoveException) exCopy;
         }
         throw Util.wrapException(exCopy);
       } finally {
         _servant_postinvoke(so);
       }
     }
   }
 }