You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Jason Pringle <Ja...@amdocs.com> on 2011/02/01 23:58:39 UTC
tomcat datasource definitions - shared vs individual
http://tomcat.apache.org/tomcat-7.0-doc/config/context.html says "Any nested elements, e.g. <Resource> elements, that are defined in a default Context will be created once for each Context to which the default applies. They will not be shared between Context elements."
Default contexts:
$CATALINA_BASE/conf/context.xml
$CATALINA_BASE/conf/[engine]/[host]/context.xml.default
http://tomcat.apache.org/tomcat-7.0-doc/config/globalresources.html#Resource_Definitions describes how to define a database pool that is shared across all Contexts (define the <Resource /> within <GlobalNamingResources /> within $CATALINA_BASE/conf/server.xml).
Is there any way to define a global database pool without touching server.xml?
Thanks!
--Jason
This message and the information contained herein is proprietary and confidential and subject to the Amdocs policy statement,
you may review at http://www.amdocs.com/email_disclaimer.asp
RE: tomcat datasource definitions - shared vs individual
Posted by Jason Pringle <Ja...@amdocs.com>.
> -----Original Message-----
> From: Caldarale, Charles R [mailto:Chuck.Caldarale@unisys.com]
> Sent: Tuesday, February 01, 2011 3:08 PM
> To: Tomcat Users List
> Subject: RE: tomcat datasource definitions - shared vs individual
>
> > From: Jason Pringle [mailto:Jason.Pringle@amdocs.com]
> > Subject: tomcat datasource definitions - shared vs individual
>
> > Is there any way to define a global database pool without
> > touching server.xml?
>
> Don't think so. Sounds like a reasonable enhancement request (which
> would have more chance of going in if accompanied by a patch).
>
> - Chuck
Figured that was the case, but sometimes you get lucky :)
If such a thing existed, what would be a reasonable location for the <Resource /> definitions? Perhaps a file $CATALINA_BASE/conf/global.resources.xml?
This message and the information contained herein is proprietary and confidential and subject to the Amdocs policy statement,
you may review at http://www.amdocs.com/email_disclaimer.asp
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
RE: tomcat datasource definitions - shared vs individual
Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Jason Pringle [mailto:Jason.Pringle@amdocs.com]
> Subject: tomcat datasource definitions - shared vs individual
> Is there any way to define a global database pool without
> touching server.xml?
Don't think so. Sounds like a reasonable enhancement request (which would have more chance of going in if accompanied by a patch).
- Chuck
THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org