public void connect(ORB orb) throws RemoteException { initializeDelegate(); delegate.connect(this, orb); }
/** * Connects this stub to an ORB. Required after the stub is deserialized * but not after it is demarshalled by an ORB stream. If an unconnected * stub is passed to an ORB stream for marshalling, it is implicitly * connected to that ORB. Application code should not call this method * directly, but should call the portable wrapper method * {@link javax.rmi.PortableRemoteObject#connect}. * @param orb the ORB to connect to. * @exception RemoteException if the stub is already connected to a different * ORB, or if the stub does not represent an exported remote or local object. */ public void connect(ORB orb) throws RemoteException { if (stubDelegate == null) { setDefaultDelegate(); } if (stubDelegate != null) { stubDelegate.connect(this, orb); } }
/** * Connects this stub to an ORB. Required after the stub is deserialized but not after it is demarshalled by an ORB * stream. If an unconnected stub is passed to an ORB stream for marshalling, it is implicitly connected to that * ORB. Application code should not call this method directly, but should call the portable wrapper method * {@link javax.rmi.PortableRemoteObject#connect}. * * @param orb * the ORB to connect to. * @exception RemoteException * if the stub is already connected to a different ORB, or if the stub does not represent an exported * remote or local object. */ public void connect(ORB orb) throws RemoteException { if (stubDelegate == null) { setDefaultDelegate(); } if (stubDelegate != null) { stubDelegate.connect(this, orb); } }
/** * Connects this stub to an ORB. Required after the stub is deserialized but not after it is demarshalled by an ORB * stream. If an unconnected stub is passed to an ORB stream for marshalling, it is implicitly connected to that * ORB. Application code should not call this method directly, but should call the portable wrapper method * {@link javax.rmi.PortableRemoteObject#connect}. * * @param orb * the ORB to connect to. * @exception RemoteException * if the stub is already connected to a different ORB, or if the stub does not represent an exported * remote or local object. */ public void connect(ORB orb) throws RemoteException { if (stubDelegate == null) { setDefaultDelegate(); } if (stubDelegate != null) { stubDelegate.connect(this, orb); } }