MemoryLeak
MemoryLeak

Reputation: 7318

How to use connection pool in jdbc with oracle database?

I am using jdbc to write a java desktop application, and this application will connect to oracle database.
is the DBCP library still work ? How can I configure a datasource in java desktop application ? is there any sample code for this ?
Thanks in advance !

Upvotes: 1

Views: 19794

Answers (1)

user330315
user330315

Reputation:

You can use the connection pool that is built into the Oracle driver. So you don't need to have a dependency to a 3rd party library.

For details see the JDBC Programmer's Guide it contains examples as well:

http://download.oracle.com/docs/cd/B28359_01/java.111/b31224/concache.htm#CDEGABII

Upvotes: 4

Related Questions