Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Tomcat Users »

Tomcat/Ant/JNDI question

Garrett Dangerfield

2003-06-17


I have defined a GlobalNamingResource for a database connection and that
works great if I put a ResourceEnvRef in the Context in the server.xml.

However, I have a problem. If I deploy my app using ant and it's deply
task, it removes the ResourceEnvRef portion of my Context.

I see two possible ways to resolve this:
- have ant's deploy task inlcue the ResourceEnvRef
- put the equivalent of ResourceEnvRef into the web.xml inside the web app

Any idea on how to do either/both of these?

Thanks,
Garrett Dangerfield.


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)


©2008 junlu.com - Jax Systems, LLC, U.S.A.