SOLVED: Virtual host deployment

2010-09-15 Thread Alec Swan
Thank you everybody for the answers. I am closing this thread. On Wed, Sep 15, 2010 at 8:27 AM, Christopher Schultz < ch...@christopherschultz.net> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Alec, > > On 9/14/2010 5:52 PM, Alec Swan wrote: > > The deployment scenario I would lik

Re: Virtual host deployment

2010-09-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Alec, On 9/14/2010 5:52 PM, Alec Swan wrote: > The deployment scenario I would like to support requires deploying the same > WAR file on the development server first and then on the production server. > Development and production servers use different

Re: Virtual host deployment

2010-09-14 Thread Pid
On 15/09/2010 04:46, Alec Swan wrote: > Could anybody explain what is the advantage of configuring JNDI resources > using GlobalNamingResources in server.xml over configuring them in > TOMCAT/conf/context.xml? If configured in global, 1 db pool is created and then referenced/shared by multiple app

Re: Virtual host deployment

2010-09-14 Thread Alec Swan
Could anybody explain what is the advantage of configuring JNDI resources using GlobalNamingResources in server.xml over configuring them in TOMCAT/conf/context.xml? Thanks! Alec On Tue, Sep 14, 2010 at 4:36 PM, Mark Thomas wrote: > On 14/09/2010 23:33, Alec Swan wrote: > > Thanks, I'll give i

Re: Virtual host deployment

2010-09-14 Thread Mark Thomas
On 14/09/2010 23:33, Alec Swan wrote: > Thanks, I'll give it a try. > > Still kind of curious if GlobalResources override resources in > META-INF/context.xml, but I guess I will find that out soon. They are in different JNDI name spaces so no. (which is why you need to use a ResourceLink) Mark

Re: Virtual host deployment

2010-09-14 Thread Alec Swan
Thanks, I'll give it a try. Still kind of curious if GlobalResources override resources in META-INF/context.xml, but I guess I will find that out soon. On Tue, Sep 14, 2010 at 4:13 PM, Pid wrote: > On 14/09/2010 23:10, Alec Swan wrote: > > GlobalResources sounds like what I am looking for. Acco

Re: Virtual host deployment

2010-09-14 Thread Pid
On 14/09/2010 23:10, Alec Swan wrote: > GlobalResources sounds like what I am looking for. According this page ( > http://tomcat.apache.org/tomcat-6.0-doc/config/globalresources.html) it > seems like I need to just add the following configuration in server.xml: > > > ... >type="

Re: Virtual host deployment

2010-09-14 Thread Alec Swan
GlobalResources sounds like what I am looking for. According this page ( http://tomcat.apache.org/tomcat-6.0-doc/config/globalresources.html) it seems like I need to just add the following configuration in server.xml: ... ... If I understand correctly, this will make jdbc/EmployeeDB JND

RE: Virtual host deployment

2010-09-14 Thread Caldarale, Charles R
> From: Alec Swan [mailto:alecs...@gmail.com] > Subject: Re: Virtual host deployment > So, the database credentials should be stored somewhere > in the server configuration. Then place the element in conf/Catalina/[host]/[appName].xml. Should you really need multiple el

Re: Virtual host deployment

2010-09-14 Thread Pid
On 14/09/2010 22:52, Alec Swan wrote: > Hi Chris, > > Thank you for the defaultHost recommendation. > > The deployment scenario I would like to support requires deploying the same > WAR file on the development server first and then on the production server. > Development and production servers us

Re: Virtual host deployment

2010-09-14 Thread Alec Swan
Hi Chris, Thank you for the defaultHost recommendation. The deployment scenario I would like to support requires deploying the same WAR file on the development server first and then on the production server. Development and production servers use different database credentials, so I cannot packag

Re: Virtual host deployment

2010-09-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Alec, On 9/14/2010 5:04 PM, Alec Swan wrote: > I have a WAR file which I distribute to multiple servers with multiple > virtual hosts. On each server I have a database, which is accessed by all > virtual host apps on this server. I'm interested: is t

Virtual host deployment

2010-09-14 Thread Alec Swan
Hello, I have a WAR file which I distribute to multiple servers with multiple virtual hosts. On each server I have a database, which is accessed by all virtual host apps on this server. Is it the right approach to put database access credentials in $TOMCAT/conf/context.xml which will then be load