Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Database Connections not to be retruned from Connection Pool

 
Sajee Joseph
Ranch Hand
Posts: 200
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Don't use the connection pool. Use forname and create your own connection.

Why wouldn't you want a connection from the pool?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic