Why don't u try opening a database connection, retrieve the data that
you need and store to a class object (IOW create a class just for this)
and then pass that object as a session object.

--
Antonio W. Lagnada
[EMAIL PROTECTED] - email

This email address is specifically
for JSP-Interest email list


---- Pranav Bansal <[EMAIL PROTECTED]> 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 get your own FREE ZDNet Onebox - FREE voicemail, email, and fax,
all in one place - sign up today at http://www.zdnetonebox.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

Reply via email to