Different JDBC sources?

2005-09-13 Thread Vsevolod (Simon) Ilyushchenko
Hi, As a relative Tomcat newbie, I can't find anything about how to use two different JDBC sources with the same codebase. I'd like to have two different URLs that use the same classes and JSP pages, but reference two different databases (test and production). Is there a standard way

RE: Different JDBC sources?

2005-09-13 Thread Allistair Crossley
List Subject: Different JDBC sources? Hi, As a relative Tomcat newbie, I can't find anything about how to use two different JDBC sources with the same codebase. I'd like to have two different URLs that use the same classes and JSP pages, but reference two different databases (test

Re: Different JDBC sources?

2005-09-13 Thread Vsevolod (Simon) Ilyushchenko
Allistair Crossley wrote on 09/13/2005 11:49 AM: The standard way is 2 servers running their own Tomcat. Each Tomcat is then configured with the datasource with differing connection strings. Allistair, And then I would publish my code into two places? (Or alternatively I can have two

Re: Different JDBC sources?

2005-09-13 Thread Stephen Caine
Simon, As a relative Tomcat newbie, I can't find anything about how to use two different JDBC sources with the same codebase. I'd like to have two different URLs that use the same classes and JSP pages, but reference two different databases (test and production). Is there a standard way

RE: Different JDBC sources?

2005-09-13 Thread Allistair Crossley
the standard way. Allistair. -Original Message- From: Vsevolod (Simon) Ilyushchenko [mailto:[EMAIL PROTECTED] Sent: 13 September 2005 17:01 To: Tomcat Users List Subject: Re: Different JDBC sources? Allistair Crossley wrote on 09/13/2005 11:49 AM: The standard way is 2 servers

Re: Different JDBC sources?

2005-09-13 Thread Hassan Schroeder
Vsevolod (Simon) Ilyushchenko wrote: As a relative Tomcat newbie, I can't find anything about how to use two different JDBC sources with the same codebase. I'd like to have two different URLs that use the same classes and JSP pages, but reference two different databases (test and production

Re: Different JDBC sources?

2005-09-13 Thread Vsevolod (Simon) Ilyushchenko
Hassan Schroeder wrote on 09/13/2005 12:33 PM: Vsevolod (Simon) Ilyushchenko wrote: As a relative Tomcat newbie, I can't find anything about how to use two different JDBC sources with the same codebase. I'd like to have two different URLs that use the same classes and JSP pages

Re: Different JDBC sources?

2005-09-13 Thread Hassan Schroeder
Vsevolod (Simon) Ilyushchenko wrote: Presumably these are two different Contexts; put the appropriate Resource in each ${context}.xml file... Thanks! How will different contexts be invoked depending on the URL? Well, maybe I misunderstood the original question :-) My presumption was that