This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
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?