This content has been marked as final.
Show 3 replies
-
1. Re: Jboss reuse the EJB java object
adrian.brock Apr 16, 2004 5:49 AM (in response to petterahlgren)3.2.3 is correct - 3.2.1 was inefficient in the pooling of beans
Add the following to your bean:public void ejbPassivate() { System.out.println("Returning to the pool - reset state here"); }
You also need to do similar processing in ejbRemove() -
2. Re: Jboss reuse the EJB java object
adrian.brock Apr 16, 2004 5:53 AM (in response to petterahlgren)When I say state - I don't mean your persistent state - I mean your implementation
state like this your count or jms/jdbc connections
Persistent state will get reset by your ejbLoad() -
3. Re: Jboss reuse the EJB java object
petterahlgren Apr 16, 2004 6:47 AM (in response to petterahlgren)Thanks for your quick answer
/Petter