You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Paul Austin <ma...@revolsys.com> on 2006/02/27 20:27:53 UTC
Stopping Data Source when stopping context
I'm using tomcat 5.5 on linux, JDK 1.4.2 and have noticed that in my
configuration that when I stop a context using the tomcat manager that
the data source defined locally in that context is not stopped. To
resolve this issue I would normally stop the entire tomcat instance and
restart it. This is a problem as there are other applications running on
the server so I would rather be able to just stop the context and have
the local resources stopped at the same time. My context configuration
follows the example below.
<?xml version='1.0' encoding='utf-8'?>
<Context debug="9" docBase="app.war" path="/app" reloadable="true">
<Resource
name="jdbc/dbName"
type="javax.sql.DataSource"
username="user"
password="password"
driverClassName="org.postgresql.Driver"
url="jdbc:postgresql://host/db"
scope="Unshareable"
maxActive="10"
maxIdle="100"
/>
</Context>
Any ideas on how to configure tomcat to stop the data sources for the
context when it is stopped?
Cheers,
Paul
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org