I feel the best way to do this is using singleton class.
with regards,
rathna.
Pranav Bansal wrote:
> Hi all,
> I want to create the DataBase connection once time on my site. For
> this, I have two options.One: - create a connection and then put it in a
> Session object. But with this way problem is 'session timeout'. Now the
> other way (may be) that some how I Store database connection in a bean and
> then get the database connection with the help of the bean. I did some with
> the second option but I didn't find any solution.
> Can any one please help me by telling me the procedure for implementing the
> Second option? or if there any other option , which you think better, then
> please tell me.
> With Regards,
> Pranav Kumar
> Software Engineer
> Informica India Pvt. ltd.
> Noida,India
> Phone: -91-118-4514702
> www.informica.com
>
> ===========================================================================
> 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
===========================================================================
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