public void unexportObject(Remote obj) throws java.rmi.NoSuchObjectException { javax.rmi.CORBA.Util.unexportObject(obj); }
/** * Disconnect an EJBObject or EJBHome from the ORB. */ @Override public void destroyReference(Remote remoteRef, Remote remoteObj) { // Note: the POAs have the NON_RETAIN policy so they dont maintain // any state for objects. We only need to unexport the object from // the RMI/IIOP machinery. // The following call also does tie.deactivate() for the remoteObj's tie try { Util.unexportObject(remoteObj); } catch ( RuntimeException ex ) { // A bug in Util.unexportObject causes this exception // Ignore it. } catch ( java.lang.Exception nsoe ){ // eat it and ignore it. } }
/** * Deactivate the exported RMI object. * @param obj The RMI object * @see javax.rmi.CORBA.PortableRemoteObjectDelegate#unexportObject(java.rmi.Remote) */ public void unexportObject( java.rmi.Remote obj ) throws java.rmi.NoSuchObjectException { Tie tie = Util.getTie( obj ); if ( tie == null ) { throw new java.rmi.NoSuchObjectException( "Object not exported" ); } Util.unexportObject( obj ); }
/** * Deregisters a server object from the runtime, allowing the object to become * available for garbage collection. * @param obj the object to unexport. * @exception NoSuchObjectException if the remote object is not * currently exported. */ public void unexportObject(Remote obj) throws NoSuchObjectException { if (obj == null) { throw new NullPointerException("invalid argument"); } if (StubAdapter.isStub(obj) || obj instanceof java.rmi.server.RemoteStub) { throw new NoSuchObjectException( "Can only unexport a server object."); } Tie theTie = Util.getTie(obj); if (theTie != null) { Util.unexportObject(obj); } else { if (Utility.loadTie(obj) == null) { UnicastRemoteObject.unexportObject(obj,true); } else { throw new NoSuchObjectException("Object not exported."); } } }
if (theTie != null) Util.unexportObject(obj);
if (theTie != null) Util.unexportObject(obj);
Tie theTie = Util.getTie(obj); if (theTie != null) { Util.unexportObject(obj); } else { if (Utility.loadTie(obj) != null) {