12 Replies Latest reply on Mar 15, 2009 11:58 AM by Pete Muir

    Requesting the EJB container to remove an instance

    Pete Muir Master

      For the purposes of JSR-299, the specified @Remove method of removing instances isn't sufficient (as we have no way to supply the parameters or know which method to call if there are multiple). Therefore, JSR-299 specifies that we should ask the container to remove the EJB instance in a non-portable way:

      When the destroy() method is called, the container removes the stateful session bean. The @PreDestroy callback must be
      invoked by the container.


      Any suggestions for the API we should call on JBoss EJB3 for this?