Then I don't think you can avoid a restart of tomcat. The only other method of defining a jdbc pool shared across webapps involves defining it in the <GlobalNamingResources>...</GlobalNamingResources> of conf/server.xml and that also requires a restart.

Pick your poison -- one db pool per webapp restarting each webapp or one db pool across all webapps restarting tomcat on change.

--David

shunhecun wrote:
Because I have several applications which share the same dataource.


David Smith-2 wrote:
Ok... this begs the question: Why did you add the datasource to $TOMCAT_BASE/conf/context.xml? The datasource should be in your individual webapp's context.xml file where all you have to do is restart the webapp via the manager webapp.

--David

shunhecun wrote:

Hi,

I added a jdbc datasource to $TOMCAT_BASE/conf/context.xml using W3C DOM.
But I have to restart the server find the new resource.
I wonder is there a way to add new resources to
$TOMCAT_BASE/conf/context.xml on Tomcat 5.5.23, without restarting server
to
find it?

Regards,
cun
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to