First of all, you should be accessing connection pool from a bean and not directly 
from your jsp. In either case, you may get the connection in one of the following ways:

i) java.sql.Connection conn =
       DriverManager.getConnection("jdbc:weblogic:pool2:" + poolName);
You must have loaded your Driver before doing this.

ii) You may register the datasource for your connection in the weblogic.properties 
file as follows:

weblogic.jdbc.DataSource.<dataSource>=<poolName>

You can do a JNDI lookup to get the datasource object and then you may use 
getConnection() method on this object to get the connection.
You may refer to weblogic documentation on how to use connection pools for more 
information.

Hope this helps;
Raman.


------Original Message------
From: charu gupta <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Sent: April 22, 2001 7:23:10 AM GMT
Subject: weblogic-jsp problem


Hi,

I have installed weblogic server 5.1
When the server is started, a connection pool is
created(I am using oracle at the backend),
Can anybody please tell me how to get a connection
from the weblogic connection pool through jsp?

Thanks.


__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
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

-----------------------------------------------
FREE! The World's Best Email Address @email.com
Reserve your name now at http://www.email.com

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
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