Hi As far as I understood from this document and EJB3 spec. if the client doesn't invoke the remove method, that instance wont be availablable for any other request and will be passivated until its timeout reaches and then the container will remove it and this has performance issues and we have to call remove method so release resources. I hope David can shed some light on this
meetoblivion wrote: > > Sorry was thinking of Passivate/Activate > > Here's the more up to date docs: > > http://java.sun.com/javaee/5/docs/tutorial/doc/bnbmt.html#bnbmu > > <http://java.sun.com/javaee/5/docs/tutorial/doc/bnbmt.html#bnbmu>I'm > curious > to know what it is you're doing in postProcess, I'm still inclined to say > that it's behaving correctly but it depends on what you're doing in there. > > On Mon, Dec 14, 2009 at 2:03 PM, is_maximum <[email protected]> wrote: > >> >> >> >> meetoblivion wrote: >> > >> > What you're describing is exactly what's supposed to be happening. >> You're >> > not supposed to invoke the @Remove method from your own code. When the >> > bean >> > container passivates the instance, it calls @Remove for you. >> > >> > >> >> Thanks. >> As far as I know, it is the client that invokes the remove method and if >> the >> container passivates the SFSB the session bean will not reset its state >> >> http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/EJBConcepts9.html >> >> >> >> ----- >> -- >> Regards >> >> Mohammad Norouzi >> >> Help each other to reach the future faster >> >> http://pixelshot.wordpress.com Pixelshot Photoblog >> >> http://brainable.blogspot.com Brainable Blog >> >> >> -- >> View this message in context: >> http://old.nabble.com/transaction-rolls-back-when-returning-from-a-remove-method-of-a-SFSB-tp26775547p26779956.html >> Sent from the OpenEJB User mailing list archive at Nabble.com. >> >> > > ----- -- Regards Mohammad Norouzi Help each other to reach the future faster http://pixelshot.wordpress.com Pixelshot Photoblog http://brainable.blogspot.com Brainable Blog -- View this message in context: http://old.nabble.com/transaction-rolls-back-when-returning-from-a-remove-method-of-a-SFSB-tp26775547p26852910.html Sent from the OpenEJB User mailing list archive at Nabble.com.
