8081828384858687888990
throw new RuntimeException(ex); } try { poa.deactivate_object(oid); } catch (WrongPolicy ex) { throw new RuntimeException(ex); }
7172737475767778798081
* Unexport this object. */ public void shutdown() { POA poa = getPOA(); try { poa.deactivate_object(poa.reference_to_id(getReference())); } catch (UserException ex) { JacORBLogger.ROOT_LOGGER.warnCouldNotDeactivateIRObject(ex); } }
571572573574575576577578579580581
throw new RuntimeException(ex); } activatorImpl.expect(id1, ether, servant1, true); try { ether.deactivate_object(id1); } catch (ObjectNotActive ex) { fail(ex); throw new RuntimeException(ex);
587588589590591592593594595596597
} TEST(activatorImpl.isValid(), regression_note); activatorImpl.expect(id2, ether, servant1, false); try { ether.deactivate_object(id2); } catch (ObjectNotActive ex) { fail(ex); throw new RuntimeException(ex);
603604605606607608609610611612613
} TEST(activatorImpl.isValid(), regression_note); activatorImpl.expect(id3, ether, servant2, false); try { ether.deactivate_object(id3); } catch (ObjectNotActive ex) { fail(ex); throw new RuntimeException(ex);
7071727374757677787980
9293949596979899100101102
for (int count=0;count<100;count++) { // System.out.println("Iteration #"+count+" - activating object"); poa.activate_object( soi); // System.out.println("Iteration #"+count+" - deactivating object"); poa.deactivate_object(poa.servant_to_id(soi)); } } catch( Exception e ) { fail( "unexpected exception: " + e );
121122123124125126127128129130131
// This will activate it so do deactivate first byte []id = poa.servant_to_id( soi ); for (int count=0;count<100;count++) { poa.deactivate_object(id); poa.activate_object_with_id(id, soi); } } catch( Exception e ) {
159160161162163164165166167168169
byte [] id = poa.activate_object(soi); for (int count=0;count<100;count++) { poa.deactivate_object(id); poa.activate_object_with_id( id, soi); } } catch( Exception e ) {
6667686970717273747576
BasicServerImpl soi = new BasicServerImpl(); for (int count=0;count<100;count++) { poa.activate_object( soi); poa.deactivate_object(poa.servant_to_id(soi)); } } /**