You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Susan G. Conger" <co...@yoeric.com> on 2011/01/21 18:10:38 UTC

Setup Advice Needed: dev vs. test vs. production

I have some web services running on tomcat and I am trying to figure out the
best way to have 1 tomcat instance running all 3 environments.  So the
tomcat would run dev, test, and production on one tomcat instance.  I don't
want to install 3 instances of tomcat on the customers machine for running
the different environments.  

 

I guess the way I would like it to work is to have the web services have the
same name regardless of the environment.  The easy way to think about it is
to have each environment running on a different port.  Is this possible?  Or
would it be easier to have a virtual host?  For now I just need to be
pointed in the correct direction on what is the best way to handle this
situation with tomcat.  If you do have a suggestion and know how to set it
up then please pass it along.  

 

Thanks,

Susan

 

===========================================================================

Susan G. Conger
Custom Windows & Macintosh Development

President
Web Site Design & Development

YOERIC Corporation
Database Design & Development

256 Windy Ridge Road

Chapel Hill, NC  27517

Phone/Fax: (919)542-0071

congers@yoeric.com

www.yoeric.com

 


Re: Setup Advice Needed: dev vs. test vs. production

Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Susan,

On 1/21/2011 2:28 PM, Susan G. Conger wrote:
> I can't.  This is running on an AS400.  And the clients are very
> particular on what you can install.

You don't have to install anything else.

Read RUNNING.txt, specifically the "Advanced" section. It will explain
everything.

> On my laptop I have multiple tomcat installations but I don't have
> that luxury on the customer's as400.

You should adopt the procedure above for your laptop, too: no need for
multiple Tomcat installations unless you actually want different TC
versions.

> So my thought process is I will have to change my software that
> communicates with the web services so that it calls different web
> services depending on dev, test, or production.  However I don't want
> to have to do this.

You will have to do this no matter what. How else will you select which
of dev, test, and prod you want to talk to?

> It would be better if I could just change the port.  I don't know if
> a virtual host would give me anything or not.

If you are changing the port, virtual hosting doesn't add anything. If
you are doing virtual hosting, changing the port doesn't add anything.

If you run multiple TC instances, it's easier to configure and deploy
(in my opinion) and you get the added benefit that your dev service
can't take down your production service.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk056yMACgkQ9CaO5/Lv0PDYtQCfUKI0Rv+r4IjbuauTwKXeHitS
MAwAoKhK0q1AyCRn+7Nk2cpSjnYzSR2Y
=WuWx
-----END PGP SIGNATURE-----

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


RE: Setup Advice Needed: dev vs. test vs. production

Posted by "Susan G. Conger" <co...@yoeric.com>.
You are preaching to the choir here about the multiple installs.  But I
can't.  This is running on an AS400.  And the clients are very particular on
what you can install.  So I am stuck.  FYI:  The dev, test, and production
is for my software not Tomcat.  So I have 3 or more versions of the software
that I have to support.  I want to have 1 tomcat installation will all of
the versions on it at my customer site.  Actual development happens on my
laptop but sometimes I have versions that the customer has to play with and
give feedback on that aren't ready for testing.  This I would install under
dev, then others that are actually in the testing phase and then finally
production.

On my laptop I have multiple tomcat installations but I don't have that
luxury on the customer's as400.

So my thought process is I will have to change my software that communicates
with the web services so that it calls different web services depending on
dev, test, or production.  However I don't want to have to do this.  It
would be better if I could just change the port.  I don't know if a virtual
host would give me anything or not.

Thanks,
Susan

-----Original Message-----
From: Caldarale, Charles R [mailto:Chuck.Caldarale@unisys.com] 
Sent: Friday, January 21, 2011 2:06 PM
To: Tomcat Users List
Subject: RE: Setup Advice Needed: dev vs. test vs. production

> From: Susan G. Conger [mailto:congers@yoeric.com] 
> Subject: RE: Setup Advice Needed: dev vs. test vs. production

> But in our environment it just isn't feasible to install 
> three different tomcats on the customer's system.

Why not?

> So I was trying to come up with a way to do this without 
> having to rename a bunch of stuff.

Trying to run three separate environments on one Tomcat will *require*
renaming a bunch of stuff.  Running separate Tomcats for each avoids that
issue.

> Can Tomcat be setup so 3 VM instances are ran under one 
> tomcat installation?

Assuming you mean JVM, not VM, you can read RUNNING.txt in the Tomcat home
directory to see how multiple Tomcat instances can be run with one copy of
the Tomcat jar files.  But I'm not sure what you think you're gaining by
doing so.  Having separate installations and running instances lets you test
on a new Tomcat version before committing it to production.

> With the constraint that only one tomcat can be installed on 
> the system what is the best way to run 3 separate environments?

Get rid of the constraint; it's nonsensical.

 - 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 unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org




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


RE: Setup Advice Needed: dev vs. test vs. production

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Susan G. Conger [mailto:congers@yoeric.com] 
> Subject: RE: Setup Advice Needed: dev vs. test vs. production

> But in our environment it just isn't feasible to install 
> three different tomcats on the customer's system.

Why not?

> So I was trying to come up with a way to do this without 
> having to rename a bunch of stuff.

Trying to run three separate environments on one Tomcat will *require* renaming a bunch of stuff.  Running separate Tomcats for each avoids that issue.

> Can Tomcat be setup so 3 VM instances are ran under one 
> tomcat installation?

Assuming you mean JVM, not VM, you can read RUNNING.txt in the Tomcat home directory to see how multiple Tomcat instances can be run with one copy of the Tomcat jar files.  But I'm not sure what you think you're gaining by doing so.  Having separate installations and running instances lets you test on a new Tomcat version before committing it to production.

> With the constraint that only one tomcat can be installed on 
> the system what is the best way to run 3 separate environments?

Get rid of the constraint; it's nonsensical.

 - 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 unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


RE: Setup Advice Needed: dev vs. test vs. production

Posted by Jeffrey Janner <Je...@PolyDyne.com>.
Chuck's reply about reading RINNIGN.txt is what I was talking about here.
He also makes several good points on why separate installs is desirable.

> -----Original Message-----
> From: Jeffrey Janner [mailto:Jeffrey.Janner@PolyDyne.com]
> Sent: Friday, January 21, 2011 1:15 PM
> To: 'Tomcat Users List'; 'congers@yoeric.com'
> Subject: RE: Setup Advice Needed: dev vs. test vs. production
> 
> Susan,
> Are you wanting to only perform one (1) install of the Tomcat software?
> What is the customer environment (O/S, etc.) that is imposing this
> requirement?
> I am going to guess that it is possibly Windows, and not Linux.
> But whichever, what you probably want is multiple instances of Tomcat
> running off the same install.
> This has been discussed many times on this list, and I think is
> documented in the Tomcat docs.
> Please conduct a search.
> Also, if it is Windows, it's pretty easy to set up multiple services
> using the service installer, so each can be controlled separately.
> For ease of use by your users, I would suggest 3 different IPs/DNS
> names assigned to the physical server with each Tomcat instance being
> configured for one of them.
> Jeff
> 
> > -----Original Message-----
> > From: Susan G. Conger [mailto:congers@yoeric.com]
> > Sent: Friday, January 21, 2011 12:30 PM
> > To: 'Tomcat Users List'
> > Subject: RE: Setup Advice Needed: dev vs. test vs. production
> >
> > I hear you.  But in our environment it just isn't feasible to install
> > three
> > different tomcats on the customer's system.  So I was trying to come
> up
> > with
> > a way to do this without having to rename a bunch of stuff.  If it
> was
> > running on a different virtual host for each environment or different
> > ports.
> > Can Tomcat be setup so 3 VM instances are ran under one tomcat
> > installation?
> > With the constraint that only one tomcat can be installed on the
> system
> > what
> > is the best way to run 3 separate environments?
> >
> > Thanks,
> > Susan
> >
> > -----Original Message-----
> > From: Caldarale, Charles R [mailto:Chuck.Caldarale@unisys.com]
> > Sent: Friday, January 21, 2011 1:15 PM
> > To: Tomcat Users List
> > Subject: RE: Setup Advice Needed: dev vs. test vs. production
> >
> > > From: Susan G. Conger [mailto:congers@yoeric.com]
> > > Subject: Setup Advice Needed: dev vs. test vs. production
> >
> > > I don't want to install 3 instances of tomcat on the
> > > customers machine for running the different environments.
> >
> > I strongly suggest you rethink that, and use at least three separate
> > Tomcat
> > instances.  Trying to run everything in one instance puts production
> at
> > a
> > severe risk of failure should anything in the dev or test environment
> > have a
> > problem (e.g., infinite loop, heap overflow).  Given the extremely
> low
> > cost
> > of hardware (or VMs) these days, I'd have the test and prod systems
> on
> > different boxes or VMs, and let each developer run their own Tomcat
> > instance
> > on their own workstation.
> >
> >  - 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 unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> > For additional commands, e-mail: users-help@tomcat.apache.org
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> > For additional commands, e-mail: users-help@tomcat.apache.org
> >
> 
> _______________________________________________________________________
> ___
> 
> Confidentiality Notice:  This Transmission (including any attachments)
> may contain information that is privileged, confidential, and exempt
> from disclosure under applicable law.  If the reader of this message is
> not the intended recipient you are hereby notified that any
> dissemination, distribution, or copying of this communication is
> strictly prohibited.
> 
> If you have received this transmission in error, please immediately
> reply to the sender or telephone (512) 343-9100 and delete this
> transmission from your system.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 

__________________________________________________________________________

Confidentiality Notice:  This Transmission (including any attachments) may contain information that is privileged, confidential, and exempt from disclosure under applicable law.  If the reader of this message is not the intended recipient you are hereby notified that any dissemination, distribution, or copying of this communication is strictly prohibited.  

If you have received this transmission in error, please immediately reply to the sender or telephone (512) 343-9100 and delete this transmission from your system.


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


RE: Setup Advice Needed: dev vs. test vs. production

Posted by Jeffrey Janner <Je...@PolyDyne.com>.
Susan,
Are you wanting to only perform one (1) install of the Tomcat software?
What is the customer environment (O/S, etc.) that is imposing this requirement?
I am going to guess that it is possibly Windows, and not Linux.
But whichever, what you probably want is multiple instances of Tomcat running off the same install.
This has been discussed many times on this list, and I think is documented in the Tomcat docs.
Please conduct a search.
Also, if it is Windows, it's pretty easy to set up multiple services using the service installer, so each can be controlled separately.
For ease of use by your users, I would suggest 3 different IPs/DNS names assigned to the physical server with each Tomcat instance being configured for one of them.
Jeff

> -----Original Message-----
> From: Susan G. Conger [mailto:congers@yoeric.com]
> Sent: Friday, January 21, 2011 12:30 PM
> To: 'Tomcat Users List'
> Subject: RE: Setup Advice Needed: dev vs. test vs. production
> 
> I hear you.  But in our environment it just isn't feasible to install
> three
> different tomcats on the customer's system.  So I was trying to come up
> with
> a way to do this without having to rename a bunch of stuff.  If it was
> running on a different virtual host for each environment or different
> ports.
> Can Tomcat be setup so 3 VM instances are ran under one tomcat
> installation?
> With the constraint that only one tomcat can be installed on the system
> what
> is the best way to run 3 separate environments?
> 
> Thanks,
> Susan
> 
> -----Original Message-----
> From: Caldarale, Charles R [mailto:Chuck.Caldarale@unisys.com]
> Sent: Friday, January 21, 2011 1:15 PM
> To: Tomcat Users List
> Subject: RE: Setup Advice Needed: dev vs. test vs. production
> 
> > From: Susan G. Conger [mailto:congers@yoeric.com]
> > Subject: Setup Advice Needed: dev vs. test vs. production
> 
> > I don't want to install 3 instances of tomcat on the
> > customers machine for running the different environments.
> 
> I strongly suggest you rethink that, and use at least three separate
> Tomcat
> instances.  Trying to run everything in one instance puts production at
> a
> severe risk of failure should anything in the dev or test environment
> have a
> problem (e.g., infinite loop, heap overflow).  Given the extremely low
> cost
> of hardware (or VMs) these days, I'd have the test and prod systems on
> different boxes or VMs, and let each developer run their own Tomcat
> instance
> on their own workstation.
> 
>  - 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 unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 

__________________________________________________________________________

Confidentiality Notice:  This Transmission (including any attachments) may contain information that is privileged, confidential, and exempt from disclosure under applicable law.  If the reader of this message is not the intended recipient you are hereby notified that any dissemination, distribution, or copying of this communication is strictly prohibited.  

If you have received this transmission in error, please immediately reply to the sender or telephone (512) 343-9100 and delete this transmission from your system.


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


RE: Setup Advice Needed: dev vs. test vs. production

Posted by Jason Pyeron <jp...@pdinc.us>.
> -----Original Message-----
> From: Susan G. Conger 
> Sent: Friday, January 21, 2011 13:30
> To: 'Tomcat Users List'
> Subject: RE: Setup Advice Needed: dev vs. test vs. production
> 
> I hear you.  But in our environment it just isn't feasible to 
> install three different tomcats on the customer's system.  So 

You are telling all there is about your situation, how about you explain your
constraints, and why they are so.

> I was trying to come up with a way to do this without having 
> to rename a bunch of stuff.  If it was running on a different 
> virtual host for each environment or different ports.

I am not sure I am following you on this statement.

> Can Tomcat be setup so 3 VM instances are ran under one 
> tomcat installation?

Do you mean one TOMCAT_HOME?

> With the constraint that only one tomcat can be installed on 
> the system what is the best way to run 3 separate environments?

The answer is don't. If you cannot have more than 1 tomcat in the enterprise,
then you should schedule downtime for the production system, to do your testing.
Undeploy the prod.war and deploy the test.war or dev.war. When done, undeploy
then deploy the prod.war.

> 
> Thanks,
> Susan
> 
> -----Original Message-----
> From: Caldarale, Charles R 
> Sent: Friday, January 21, 2011 1:15 PM
> To: Tomcat Users List
> Subject: RE: Setup Advice Needed: dev vs. test vs. production
> 
> > From: Susan G. Conger [mailto:congers@yoeric.com]
> > Subject: Setup Advice Needed: dev vs. test vs. production
> 
> > I don't want to install 3 instances of tomcat on the 
> customers machine 
> > for running the different environments.
> 
> I strongly suggest you rethink that, and use at least three 
> separate Tomcat instances.  Trying to run everything in one 
> instance puts production at a severe risk of failure should 
> anything in the dev or test environment have a problem (e.g., 
> infinite loop, heap overflow).  Given the extremely low cost 
> of hardware (or VMs) these days, I'd have the test and prod 
> systems on different boxes or VMs, and let each developer run 
> their own Tomcat instance on their own workstation.
> 


--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-                                                               -
- Jason Pyeron                      PD Inc. http://www.pdinc.us -
- Principal Consultant              10 West 24th Street #100    -
- +1 (443) 269-1555 x333            Baltimore, Maryland 21218   -
-                                                               -
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
This message is copyright PD Inc, subject to license 20080407P00.



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


RE: Setup Advice Needed: dev vs. test vs. production

Posted by "Susan G. Conger" <co...@yoeric.com>.
I hear you.  But in our environment it just isn't feasible to install three
different tomcats on the customer's system.  So I was trying to come up with
a way to do this without having to rename a bunch of stuff.  If it was
running on a different virtual host for each environment or different ports.
Can Tomcat be setup so 3 VM instances are ran under one tomcat installation?
With the constraint that only one tomcat can be installed on the system what
is the best way to run 3 separate environments?

Thanks,
Susan

-----Original Message-----
From: Caldarale, Charles R [mailto:Chuck.Caldarale@unisys.com] 
Sent: Friday, January 21, 2011 1:15 PM
To: Tomcat Users List
Subject: RE: Setup Advice Needed: dev vs. test vs. production

> From: Susan G. Conger [mailto:congers@yoeric.com] 
> Subject: Setup Advice Needed: dev vs. test vs. production

> I don't want to install 3 instances of tomcat on the 
> customers machine for running the different environments.  

I strongly suggest you rethink that, and use at least three separate Tomcat
instances.  Trying to run everything in one instance puts production at a
severe risk of failure should anything in the dev or test environment have a
problem (e.g., infinite loop, heap overflow).  Given the extremely low cost
of hardware (or VMs) these days, I'd have the test and prod systems on
different boxes or VMs, and let each developer run their own Tomcat instance
on their own workstation.

 - 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 unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org




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


RE: Setup Advice Needed: dev vs. test vs. production

Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Susan G. Conger [mailto:congers@yoeric.com] 
> Subject: Setup Advice Needed: dev vs. test vs. production

> I don't want to install 3 instances of tomcat on the 
> customers machine for running the different environments.  

I strongly suggest you rethink that, and use at least three separate Tomcat instances.  Trying to run everything in one instance puts production at a severe risk of failure should anything in the dev or test environment have a problem (e.g., infinite loop, heap overflow).  Given the extremely low cost of hardware (or VMs) these days, I'd have the test and prod systems on different boxes or VMs, and let each developer run their own Tomcat instance on their own workstation.

 - 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 unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org