This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Oracle connection pool thru app server?" Watch "Oracle connection pool thru app server?" New topic

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

Joined: May 26, 2003
Posts: 30123

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
I agree. Here's the link:
subject: Oracle connection pool thru app server?
Similar Threads
Connection pooling
Can we set connection timeout through Hibernate without using C3P0?
Oracle Clob error on shared Sun One connection pool
suggestion for DB pool
Help please!!! Is there a method for closing sessions java-side?