There connection pools are setup via JNDI I think so you want to get the
database and call getConnection on the datasource.
> -----Original Message-----
> From: A mailing list about Java Server Pages specification and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of Rupali Bains Goswami
> Sent: Friday, June 30, 2000 1:54 PM
> To: [EMAIL PROTECTED]
> Subject: Connection Pool
>
>
> I Have a very basic question.
>
> I am using weblogic and have created the connection pool in the properties
> file.
>
> How do i then connect to the database? should i have an init
> method for the
> initial connection?
>
> All I want to do is initially connect to the database and query
> some tables
>
> the code is something like this
>
> Class.forName (jdbcClass).newInstance();
> Connection conn = DriverManager.getConnection(jdbcURL,user,password);
>
> how would i then maintain the connection through all my jsp pages.
>
> Thanks for all the help.
>
> -Nisha
>
> ________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.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