You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Roland Carlsson <ro...@aqmlabs.se> on 2006/10/19 13:21:25 UTC
Configure resourses for host-context
Hi!
In my Tomcat 5.0 installation I have a load of Resourses inside the
GlobalNamingResources. These Resources are linked inside DefaultContext
with ResourceLinks that I use inside my webapps. This have served me
well for a quite long time.
Now I face the problem that I basically have to host the same webapps
for another customer one the same server. So I have to point some of my
Resources to different databases. I could rename inside my application
but that doesn't seem like the right way to go. So I figure that instead
of using the DefaultContext I perhaps could put my ResourceLinks or even
the Resources itself inside the Host. But so far I have not been able to
make it work.
So my question: Is it possible to put Resources or preferbly
ResourseLinks inside the Host-tag of my server.xml. I'd really like the
idea of keeping the configuration as GlobalResources and the simply tell
what each Host have the right to use.
Thank you very much
Roland Carlsson
---------------------------------------------------------------------
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: Configure resourses for host-context
Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Roland Carlsson [mailto:roland@aqmlabs.se]
> Subject: Configure resourses for host-context
>
> So my question: Is it possible to put Resources or preferbly
> ResourseLinks inside the Host-tag of my server.xml.
If you were to move to 5.5, you could do this. Each host can have its
own default context settings, by specifying them in:
conf/[enginename]/[hostname]/context.xml.default
I haven't found an analogous capability in 5.0, but then I haven't used
that version for quite some time.
- 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 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