protected void cleanUpTie(Tie cachedTie) throws java.rmi.NoSuchObjectException { cachedTie.setTarget(null); cachedTie.deactivate(); }
@Override public void validateTargetObjectInterfaces(Remote targetObj) { if( targetObj != null ) { // All Remote interfaces implemented by targetObj will be // validated as a side-effect of calling setTarget(). // A runtime exception will be propagated if validation fails. Tie tie = presentationMgr.getTie(); tie.setTarget(targetObj); } else { throw new IllegalArgumentException ("null passed to validateTargetObjectInterfaces"); } }
public void registerTarget(Tie tie, Remote obj) { if (obj == null) throw new IllegalArgumentException("remote object is null"); tie.setTarget(obj); tie_map().put(obj, tie); // log.info("exported instance of "+obj.getClass()+" in // "+RMIState.current().getName()); }
protected void cleanUpTie(Tie cachedTie) throws java.rmi.NoSuchObjectException { cachedTie.setTarget(null); cachedTie.deactivate(); }
protected void cleanUpTie(Tie cachedTie) throws java.rmi.NoSuchObjectException { cachedTie.setTarget(null); cachedTie.deactivate(); }
public RemoteNamingServantLocator( ORB orb, Remote impl ) { this.orb = orb ; Tie tie = ORB.getPresentationManager().getTie() ; tie.setTarget( impl ) ; servant = Servant.class.cast( tie ) ; }
tie.setTarget(targetObj); servant = (Servant) tie;
/** * Registers a target for a tie. Adds the tie to an internal table and calls * {@link Tie#setTarget} on the tie object. * @param tie the tie to register. * @param target the target for the tie. */ public void registerTarget(javax.rmi.CORBA.Tie tie, java.rmi.Remote target) { synchronized (exportedServants) { // Do we already have this target registered? if (lookupTie(target) == null) { // No, so register it and set the target... exportedServants.put(target,tie); tie.setTarget(target); // Do we need to instantiate our keep-alive thread? if (keepAlive == null) { // Yes. Instantiate our keep-alive thread and start // it up... keepAlive = (KeepAlive)AccessController.doPrivileged(new PrivilegedAction() { public java.lang.Object run() { return new KeepAlive(); } }); keepAlive.start(); } } } }
tie.setTarget(target);