File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC and the fly likes Oracle connection pool thru app server? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Oracle connection pool thru app server?" Watch "Oracle connection pool thru app server?" New topic
Author

Oracle connection pool thru app server?

Marshall B Thompson
Ranch Hand

Joined: Apr 11, 2002
Posts: 42
I will be writing a web app that hits an oracle db. I plan to use the oracle oci drivers so that I can use proxy authentication. My web server is the Sun Java System Web Server 6.1, and we use it's internal app server capabilities for our app server. I had planned on manipulating the oracle connection pool directly from java code using the oracle supplied driver and classes. However; I see that I can define a connection pool to my app(web) server. I assume this would let me use JNDI to get my datasource. Big deal. Any other reasons? I'm leaning toward not defining the connection pool to my web server.
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 29220
    
135

Marshall,
It is best to let the app server handle the connection pool and use datasources. Why would you want to write something that the app server already does?


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
Consider Paul's rocket mass heater.
 
subject: Oracle connection pool thru app server?
 
Similar Threads
Oracle Clob error on shared Sun One connection pool
Connection pooling
suggestion for DB pool
Help please!!! Is there a method for closing sessions java-side?
Can we set connection timeout through Hibernate without using C3P0?