code: public void terminate() {
          final boolean isTraceOn = TraceComponent.isAnyTracingEnabled(); // d532639.2
  
          if (isTraceOn && tc.isEntryEnabled())
              Tr.entry(tc, "terminate");
  
          //-----------------------------
          // Stop passivation activity
          //-----------------------------
          if (passivator != null) // May be null if initialize failed d162687.1
              passivator.terminate();
  
          //-----------------------------
          // Delete all passivated beans
          //-----------------------------
          if (activator != null) // May be null if initialize failed d162687.1
              activator.terminate();
  
          //-------------------------------------
          // Unregister from the transport layer
          //-------------------------------------
          if (wrapperManager != null) // May be null if initialize failed d162687.1
              wrapperManager.destroy();
  
          //d583637 - start
          //-------------------------------------
          // Unset static instance references
          //-------------------------------------
          defaultContainer = null;
          homeOfHomes = null;
  
          activator = null;
          passivator = null;
          wrapperManager = null;
          poolManager.cancel();
          poolManager = null;
          //d583637 - end
  
          if (isTraceOn && tc.isEntryEnabled())
              Tr.exit(tc, "terminate");
      }
docs: Force this container instance to terminate. <p>
  
  This method causes the container to mark for rollback all
  associated transactions (i.e. all those involving bean
  instances managed by this container), to release all active
  and pooled EJB instances, and to unregister with the
  ORB. <p>
  
  This method is guaranteed to return and does not guarantee that
  all termination actions have completed when it does so, only
  that they have all been initiated, i.e. the caller cannot assume
  that when this method completes that all transactions this
  container was associated with will have been rolled back. <p>
  
  There may be backgrond threads running on behalf of this container
  after this method completes. <p>