Hi,
I have read that whenever the server is shutdown properly, it removes the
instatnces of the EJB from the pool(Garbage collected).And when ever the
server is restarted it creates many instances of the bean and put them in
the pool
Ashwani Kalra
Sr. Systems Associate,
NIIT LTD.
Phone :091-11-6203577(D),6203578
> ----------
> From: Sylvain Roche
> Reply To: Sylvain Roche
> Sent: Monday, March 06, 2000 6:58 PM
> To: [EMAIL PROTECTED]
> Subject: EJB life cycle on java server restart
>
> I was just wondering, what do beans become when the server is shut down ?
> Are they destroyed, and in which way ? Are they garbage collected, or do I
> have to do it myself. Servlets are destroyed upon server restart, but
> apparently my beans aren't, or to be more precise, their destroy method is
> not called (as far as I have tested it).
>
> I think what should happen, in a session persistence context, is that all
> think in the session scope are saved to disk, which could explain why they
> are not destroyed
> All that isn't stored in the session environment should be destroyed
> anyway.
> I don't know if this should be done by an explicit kill, or if you have to
> wait for the garbage collector. afaik, the gc is called when the server
> stops, but what happens when it crashes.
>
> I have downsized my ebj, but I want to be sure not to run out of memory,
> even with wide traffic on my application. Am I mistaking something ?
>
> Regards
> Sylvain
>
>
>
>
>
> ______________________________________________
> Sylvain Roche
> Responsable d�veloppement
> Add-Online
> www.add-online.fr
>
> 80 rue d'Alsace
> 69100 VILLEURBANNE
> France
>
> tel : +33 437431260
> fax: +33 437431269
>
> ==========================================================================
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
>
>
Visit http://www.niit.com for eCommerce Solutions.
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets