On Mon, Apr 28, 2025 at 9:32 AM Mark Thomas <ma...@apache.org> wrote:

> > On 28/04/2025 14:05, A Name wrote:
> > > We are looking at adding a second instance of our app (named
> differently --
> > > myappA and myappB) to our Tomcat 9.  We currently have the app
> installed at
> > > a number of customer locations, we are looking at dropping 1 app
> > >
> > > Currently, our database connections are established inside the GLOBAL
> > > web.xml in /conf/web.xml - and have been forever.  This was a design
> > > decision made long ago - that way the app doesn't have a separate
> > > configuration for each location - it is the same app WAR file, and the
> > > connections are established at the server.
> > >
> > > Our customer doesn't want any code changes - is there a way to have
> some
> > > sort of conditional statements in the web.xml?
> >
> > No.
> >
> > > Or if we set it up so Tomcat is hosting 2 sites (www.sitea.com/myapp
> and
> > > www.siteb.com/myapp) and have the global web.xml with different
> settings
> > > based on host/site?
> >
> > No.
> >
> > Sorry. Global is global.
> >
> > Mark
>
>
> OK - I "knew" that would be the answer but felt I should kick over the
rock and look just in case. Thanks for the quick and polite response.

Reply via email to