Two Laptop Bag*
The moose likes Tomcat and the fly likes Database Connections not to be retruned from Connection Pool Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Database Connections not to be retruned from Connection Pool" Watch "Database Connections not to be retruned from Connection Pool" New topic
Author

Database Connections not to be retruned from Connection Pool

Sajee Joseph
Ranch Hand

Joined: Jan 17, 2001
Posts: 200
Hello all,

How can i ensure that the Connections(Database connection) returned to me are not from the Connection Pool. I want fresh new connection each time. I am using Tomcat 5.0 server.

Regards,
sajee
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Don't use the connection pool. Use forname and create your own connection.

Why wouldn't you want a connection from the pool?


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Database Connections not to be retruned from Connection Pool