[jboss-user] [EJB 3.0] - Requesting the EJB container to remove an instance

pete.muir@jboss.org do-not-reply at jboss.com
Sat Mar 7 10:59:59 EST 2009


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:

anonymous wrote : 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?

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4215947#4215947

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4215947



More information about the jboss-user mailing list