public void shutdown() { // shutdown all anonymous IR objects in this IR for (long i = 1; i < nextPOAId; i++) { try { getPOA().deactivate_object(getAnonymousObjectId(i)); } catch (org.omg.CORBA.UserException ex) { IIOPLogger.ROOT_LOGGER.warnCouldNotDeactivateAnonIRObject(ex); } } // shutdown this IR's top-level container super.shutdown(); }
/** * Unexport this object. */ public void shutdown() { POA poa = getPOA(); try { poa.deactivate_object(poa.reference_to_id(getReference())); } catch (UserException ex) { IIOPLogger.ROOT_LOGGER.warnCouldNotDeactivateIRObject(ex); } }
public void destroy() { bindings = null; try { _poa().deactivate_object(_poa().servant_to_id(this)); } catch (UserException e) { throw IIOPLogger.ROOT_LOGGER.exceptionDestroingIterator(e.getMessage()); } }
@Override public final void deactivate() { try { eventChannelFactoryPOA_.deactivate_object(oid_); } catch (Exception e) { logger_.error("unable to deactivate object", e); throw new RuntimeException(); } }
/**Destroys the CoordinatorImpl object reference. */ synchronized final void destroy() { if( poa != null && thisRef != null ) try { poa.deactivate_object(poa.reference_to_id(thisRef)); thisRef = null; } catch( Exception exc ) { _logger.log(Level.WARNING,"jts.object_destroy_error","Coordinator"); } }
synchronized void remove_coordinator( TransactionalLockSetImpl ls ){ LockCoordinatorImpl lc = (LockCoordinatorImpl)locksets.get( ls ); if( lc != null ){ try { byte [] ObjId = poa.servant_to_id( lc ); poa.deactivate_object( ObjId ); } catch ( Exception e ) { } locksets.remove( ls ); } }; public void run() {
/** * Destory this BindingIterator instance, which deativates * it from the hosting POA. */ public void destroy() { try { // we need to deactivate this from the POA. byte[] objectId = poa.servant_to_id(this); if (objectId != null) { poa.deactivate_object(objectId); } } catch (Exception e ) { } } }
/** * Destory this BindingIterator instance, which deativates * it from the hosting POA. */ public void destroy() { try { // we need to deactivate this from the POA. byte[] objectId = poa.servant_to_id(this); if (objectId != null) { poa.deactivate_object(objectId); } } catch (Exception e) { } } }
public void deactivate() { if (orb != null) { if (bindingPOA == null) { throw new CorbaBindingException("Corba Port deactivation failed because the poa is null"); } try { bindingPOA.deactivate_object(objectId); } catch (ObjectNotActive ona) { LOG.info("Caught ObjectNotActive exception: " + ona + " during deactivate_object() call on POA: " + bindingPOA); } catch (Exception ex) { throw new CorbaBindingException("Unable to deactivate CORBA servant", ex); } } }
synchronized void remove_me( TransactionCoordinator i_am ){ coordinators.remove( i_am.get_coordinator() ); try { byte [] ObjId = poa.servant_to_id( i_am ); poa.deactivate_object( ObjId ); } catch ( Exception e ){ e.printStackTrace( System.out ); throw new org.omg.CORBA.INTERNAL(); } } /* -------------------------------------------------------------------------- */
synchronized void remove_me( TransactionalLockSetImpl i_am ){ Enumeration enumeration = coordinators.elements(); while( enumeration.hasMoreElements() ){ TransactionCoordinator tc = (TransactionCoordinator)enumeration.nextElement(); tc.remove_coordinator( i_am ); } try { byte [] ObjId = poa.servant_to_id( i_am ); poa.deactivate_object( ObjId ); } catch ( Exception e ){ e.printStackTrace( System.out ); throw new org.omg.CORBA.INTERNAL(); } }; };
public void deactivate() { if (_get_delegate() == null) throw new RuntimeException("object not active"); try { org.omg.PortableServer.POA poa = _state.getPOA(); byte[] id = poa.servant_to_id(this); poa.deactivate_object(id); _set_delegate(null); } catch (Throwable ex) { logger.throwing("", "deactivate", ex); throw new RuntimeException("cannot deactivate: " + ex.getMessage(), ex); } }
public void deactivate() { try{ _poa().deactivate_object(_poa().servant_to_id(this)); } catch (org.omg.PortableServer.POAPackage.WrongPolicy exception){ // ignore } catch (org.omg.PortableServer.POAPackage.ObjectNotActive exception){ // ignore } catch (org.omg.PortableServer.POAPackage.ServantNotActive exception){ // ignore } }
public void destroy () { bindings = null; try { _poa ().deactivate_object (_poa ().servant_to_id (this)); } catch (UserException e) { throw new INTERNAL ("Caught exception destroying Iterator" + e); } }
public void shutdown() { // shutdown all anonymous IR objects in this IR for (long i = 1; i < nextPOAId; i++) { try { getPOA().deactivate_object(getAnonymousObjectId(i)); } catch (org.omg.CORBA.UserException ex) { IIOPLogger.ROOT_LOGGER.warnCouldNotDeactivateAnonIRObject(ex); } } // shutdown this IR's top-level container super.shutdown(); }
/** * Unexport this object. */ public void shutdown() { POA poa = getPOA(); try { poa.deactivate_object(poa.reference_to_id(getReference())); } catch (UserException ex) { IIOPLogger.ROOT_LOGGER.warnCouldNotDeactivateIRObject(ex); } }
/** * Unexport this object. */ public void shutdown() { POA poa = getPOA(); try { poa.deactivate_object(poa.reference_to_id(getReference())); } catch (UserException ex) { IIOPLogger.ROOT_LOGGER.warnCouldNotDeactivateIRObject(ex); } }
public void shutdown() { // shutdown all anonymous IR objects in this IR for (long i = 1; i < nextPOAId; i++) { try { getPOA().deactivate_object(getAnonymousObjectId(i)); } catch (org.omg.CORBA.UserException ex) { IIOPLogger.ROOT_LOGGER.warnCouldNotDeactivateAnonIRObject(ex); } } // shutdown this IR's top-level container super.shutdown(); }
public void destroy() { bindings = null; try { _poa().deactivate_object(_poa().servant_to_id(this)); } catch (UserException e) { throw IIOPLogger.ROOT_LOGGER.exceptionDestroingIterator(e.getMessage()); } }
public void destroy() { bindings = null; try { _poa().deactivate_object(_poa().servant_to_id(this)); } catch (UserException e) { throw IIOPLogger.ROOT_LOGGER.exceptionDestroingIterator(e.getMessage()); } }