Makes sense... thanks....

I'll be back.... :-)

On Thu, Jan 30, 2014 at 4:00 PM, Mark Thomas <ma...@apache.org> wrote:
> On 30/01/2014 21:43, Jerry Malcolm wrote:
>> That's worked fine.  I have known for a while that the
>> recommendation is to NOT include <context> blocks in server.xml and
>> to rather create context.xml files in META-INF directory.  Fine....
>> but here's the wall I'm hitting.... if I have one context.xml for
>> myApp1 that now is common to all hosts, HOW do I tell myApp1 to use
>> one db resource for host1 and a different db resource for host2?
>> I've read through tons of the how-to pages in the docs, and I'm
>> coming up empty.  I would think it would make sense to define the
>> resource at the host level. But according to what I can find in the
>> docs, a resource tag is not legal directly under a host tag.
>>
>> If you can help me out with this, I'll be well on my way....
>
> Take what was in the <Context .../> blocks in server.xml and move them
> into separate context.xml files. These files need to be named to match
> the context names (e.g. for an app with path "/foo", name the file
> foo.xml). Then place then in the following directory structure:
> $CATALINA_BASE/conf/<engine-name>/<host-name>/context-xml-files-go-here
>
> So each virtual host has its own directory.
>
> HTH,
>
> Mark
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to