wood burning stoves 2.0*
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
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Database Connections not to be retruned from Connection Pool
 
Similar Threads
When to close connection?
JSF Database Access
getting the active connections from connection pool
Getting connection from pool?
Better approach to get DB Connection