Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DBCP to be configured in <GlobalNamingResources> or <Context>?

Status
Not open for further replies.

correro

Programmer
Nov 20, 2003
54
CN
To create database connection pool, I configured <Resource> and <ResourceParams> in <GlobalNamingResources>, but it did not work.

Then I created and configured <Resource> and <ResourceParams> in <Context>, and it worked.

This doesn't seem to make sense to me. Can you tell me why and what is the correct way to create a DBCP? Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top