If the person who administers your Tomcat installation has set things up to allow it, and if you have a suitably up to date Tomcat version, you can put a "META-INF/context.xml" file in the WAR, containing the <Context> element that defines your JNDI resources. However, it's likely that your admin hasn't enabled this feature, it's not on by default, for security reasons.

The other option is to create a database pool yourself:
http://cvs.apache.org/viewcvs.cgi/*checkout*/jakarta-commons/dbcp/doc/BasicDataSourceExample.java?rev=1.1

-- Dirk

Emerson Cargnin wrote:

I don't have access to tomcat server.xml file, how do I set a pool in a programatic way?





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to