File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB and other Java EE Technologies and the fly likes how to set the timeout interval for stateful EJB using weblogic 10.3.4? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "how to set the timeout interval for stateful EJB using weblogic 10.3.4?" Watch "how to set the timeout interval for stateful EJB using weblogic 10.3.4?" New topic
Author

how to set the timeout interval for stateful EJB using weblogic 10.3.4?

peter tong
Ranch Hand

Joined: Mar 15, 2008
Posts: 240
I try to set the timeout in weblogic-ejb-jar.xml as follow:


and in the EJB, I implement @Remove and @PrePassivate as follow:


But I find that, after I created the stateful EJB and let it idle, the EJB will not be passivate and /or remove in a long time (over one hour), I expect the EJB will be passivate after 2 seconds and then remove after 5 second as set in weblogic-ejb-jar.xml.
What is the problem?
 
Don't get me started about those stupid light bulbs.
 
subject: how to set the timeout interval for stateful EJB using weblogic 10.3.4?
 
Similar Threads
javax.naming.NameNotFoundException: While trying to lookup
Tune stateful EJB configurations
setting pool size for ejb ???????????
EJB Passivate and EJB Remove for stateful Bean are not called by weblogic
Why ejbPassivate and ejbRemove are not called by weblogic container?