You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Edward Pricer <tp...@yahoo.com> on 2008/04/14 23:07:14 UTC
data source information in context.xml - can it be external to the war
I have a web application that includes a jndi resource data sourcedefined in context.xml. This is causing me problems when I deploy todifferent environments (test/production) because the data sourceparameters change. What is the preferred way to store such jndiinformation external to the war?
Thanks
Ted
____________________________________________________________________________________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: data source information in context.xml - can it be external to
the war
Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Ted,
Edward Pricer wrote:
| I have a web application that includes a jndi resource data
| source defined in context.xml. This is causing me problems when I
| deploy to different environments (test/production) because the data
| source parameters change. What is the preferred way to store such
| jndi information external to the war?
Instead of using <Resource> and specifying everything, you can use
<ResourceLink> element to link to a resource defined in server.xml.
This allows your ops team to define the resources globally and then each
application can link-into the one that it needs.
See
http://tomcat.apache.org/tomcat-6.0-doc/config/context.html#Resource%20Links
- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkgDzZ0ACgkQ9CaO5/Lv0PD8yACcDTIiGpTKJ+lRJeN2saEdKCkX
w4wAn2Lqm5T6tAHIUN6SMctkpsEwTjMF
=Cf0b
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org