This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
This will be part of Web.xml, this will refer to the Resource name which is defined in the server.xml, so the referrence must be added in the web.xml and there must be a definiton for the resource in the server.xml
I think you are also able to add this in the context.xml. so you might want to check the below link to know in detail about this.
To qualify Sachin's response: define the database connection pool in the "context.xml" file if this pool will only be used for a single webapp (the webapp that the Context definition defines). Define it in server.xml only if the same pool is common to more than one webapp.
I said "context.xml" in quotes, because the name of that file can vary depending on where it's located, but that's not something specific only to database connections.
An IDE is no substitute for an Intelligent Developer.
Joined: Jun 06, 2012
Actually what i have done,
1. i have added ojdbc14.jar in tomcat 6 lib directory.
2. i have added entry in context.xml, code is below.