This content has been marked as final.
Show 4 replies
-
1. Re: JBoss EJB Lifecycle
iudoka Apr 14, 2007 1:33 PM (in response to iudoka)Please can anybody help me with this?
-
2. Re: JBoss EJB Lifecycle
genman Apr 16, 2007 1:39 AM (in response to iudoka)You need to post more information. Exceptions, code samples, test cases, etc.
-
3. Re: JBoss EJB Lifecycle
iudoka Apr 16, 2007 10:17 AM (in response to iudoka)"genman" wrote:
You need to post more information. Exceptions, code samples, test cases, etc.
I'm not sure what more information is needed, I believe that there is some EJB life cycle property that can be set in order to determine how long the container should hold on to an EJB before passivating it. I just can't for the life of me find which properties file has this property. I'm not sure if I'm being too vague but I'm not sure how else to explain it because my issue (I don't think) should be specific to any code, its more of a general question about property file for deploying EJB's.
I simply connect to an EJB via JNP and after about 30 minutes the EJB is passivated. I put in a print statement in the beans ejbPassivate() function and it prints on the server after about 30 minutes. I want to see how I can increase this passivation time to a high number if possible. And I'm under the impression that you can do it through a properties file. -
4. Re: JBoss EJB Lifecycle
bigdaddy May 18, 2007 11:09 AM (in response to iudoka)Configuration of the passivation period may be accomplished by tweaking the container configuration under standardjboss.xml or a deployed META-INF/jboss.xml. A couple of properties that should help with that would be the max-bean-age and the overager-period. Have a look at the container cache configuration section of the JBoss J2EE application server reference manual. Reviewing the EJB container section (4.3) of the manual should provide the information requested.
Hope this helps.