R
reformy
hi
I have a web-app running under tomcat 5.0.28. In that application i m
using 2 resources - oracle jdbc connection pool and mail session. Both
are defined in the server's server.xml:
<Context path="/JCC" docBase="JCC">
<!-- Mail sender. -->
<Resource name="mail/Session" auth="Container"
type="javax.mail.Session"/>
....
<!-- DB connection. -->
<Resource name="jdbc/OracleDB" auth="Container"
type="javax.sql.DataSource"/>
....
Is there a way to define these two inside my application? What i want
is that the installation of my web-app will include only copying the
web-app into webapps directory, without changing anything in other
tomcat folders.
Thanks
I have a web-app running under tomcat 5.0.28. In that application i m
using 2 resources - oracle jdbc connection pool and mail session. Both
are defined in the server's server.xml:
<Context path="/JCC" docBase="JCC">
<!-- Mail sender. -->
<Resource name="mail/Session" auth="Container"
type="javax.mail.Session"/>
....
<!-- DB connection. -->
<Resource name="jdbc/OracleDB" auth="Container"
type="javax.sql.DataSource"/>
....
Is there a way to define these two inside my application? What i want
is that the installation of my web-app will include only copying the
web-app into webapps directory, without changing anything in other
tomcat folders.
Thanks