/** * Marshals the sequence of method parameters into an output stream. * * @param out a CDR output stream * @param params an object array with the parameters. */ public void writeParams(OutputStream out, Object[] params) { int len = params.length; if (len != paramWriters.length) { throw IIOPLogger.ROOT_LOGGER.errorMashalingParams(); } for (int i = 0; i < len; i++) { Object param = params[i]; if (param instanceof PortableRemoteObject) { try { param = PortableRemoteObject.toStub((Remote) param); } catch (NoSuchObjectException e) { throw new RuntimeException(e); } } paramWriters[i].write(out, RemoteObjectSubstitutionManager.writeReplaceRemote(param)); } }
java.rmi.Remote getStub(java.rmi.Remote remote) throws java.rmi.RemoteException { return PortableRemoteObject.toStub(remote); } }
java.rmi.Remote getStub(java.rmi.Remote remote) throws java.rmi.RemoteException { return PortableRemoteObject.toStub(remote); } }
public void writeAbstractObject(org.omg.CORBA.portable.OutputStream out, Object obj) { logger.finer("writeAbstractObject.1 " + " out=" + out); if (obj instanceof org.omg.CORBA.Object || obj instanceof Serializable) { // skip // } else if (obj instanceof Remote) { org.omg.CORBA.Object objref = null; try { objref = (org.omg.CORBA.Object) PortableRemoteObject .toStub((Remote) obj); } catch (java.rmi.NoSuchObjectException ex) { } if (objref == null) { try { PortableRemoteObject.exportObject((Remote) obj); objref = (org.omg.CORBA.Object) PortableRemoteObject .toStub((Remote) obj); } catch (RemoteException ex) { throw (MARSHAL) new MARSHAL("unable to export object").initCause(ex); } } obj = objref; } org.omg.CORBA_2_3.portable.OutputStream out_ = (org.omg.CORBA_2_3.portable.OutputStream) out; logger.finer("writeAbstractObject.2 " + " out=" + out); out_.write_abstract_interface(obj); }
obj = PortableRemoteObject.toStub((Remote) obj);
/** * Marshals the sequence of method parameters into an output stream. * * @param out a CDR output stream * @param params an object array with the parameters. */ public void writeParams(OutputStream out, Object[] params) { int len = params.length; if (len != paramWriters.length) { throw IIOPLogger.ROOT_LOGGER.errorMashalingParams(); } for (int i = 0; i < len; i++) { Object param = params[i]; if (param instanceof PortableRemoteObject) { try { param = PortableRemoteObject.toStub((Remote) param); } catch (NoSuchObjectException e) { throw new RuntimeException(e); } } paramWriters[i].write(out, RemoteObjectSubstitutionManager.writeReplaceRemote(param)); } }
/** * Marshals the sequence of method parameters into an output stream. * * @param out a CDR output stream * @param params an object array with the parameters. */ public void writeParams(OutputStream out, Object[] params) { int len = params.length; if (len != paramWriters.length) { throw IIOPLogger.ROOT_LOGGER.errorMashalingParams(); } for (int i = 0; i < len; i++) { Object param = params[i]; if (param instanceof PortableRemoteObject) { try { param = PortableRemoteObject.toStub((Remote) param); } catch (NoSuchObjectException e) { throw new RuntimeException(e); } } paramWriters[i].write(out, RemoteObjectSubstitutionManager.writeReplaceRemote(param)); } }
obj = PortableRemoteObject.toStub((Remote) obj);
Remote proxy = PortableRemoteObject.toStub(impl); if (orb != null) { ((Stub) proxy).connect(orb);
try { objref = (javax.rmi.CORBA.Stub) PortableRemoteObject .toStub((java.rmi.Remote) obj); PortableRemoteObject.exportObject((java.rmi.Remote) obj); objref = (javax.rmi.CORBA.Stub) PortableRemoteObject .toStub((java.rmi.Remote) obj); } catch (java.rmi.RemoteException ex) { throw (MARSHAL) new MARSHAL("cannot convert Remote to Object").initCause(ex);
stub = PortableRemoteObject.toStub( (Remote)orig ) ; } catch (Exception exc) {
ret = ((obj.equals(PortableRemoteObject.toStub(this))) || (obj.equals(this)));
stub = PortableRemoteObject.toStub(remoteObj); } catch (Throwable t) { ConfigurationException ce = new ConfigurationException(
public void begin() throws NotSupportedException, SystemException { current.begin(); // Creation of the global transaction coordinator TransactionContext localTC = current.getPropagationContext(false); Coordinator c; if (localTC.getCoordinator() == null) { try { c = (Coordinator) PortableRemoteObject.narrow(PortableRemoteObject.toStub(Current .getJTM().recreate(localTC)), Coordinator.class); } catch (RemoteException e) { throw new SystemException(e.getMessage()); } localTC.setCoordinator(c); localTC.setTerminator((Terminator) c); } }
try { corba_obj = (org.omg.CORBA.Object) PortableRemoteObject .toStub(ro); } catch (java.rmi.NoSuchObjectException ex) { throw (org.omg.CORBA.MARSHAL) new org.omg.CORBA.MARSHAL(