RE: When to use two tomcat instances

2002-11-14 Thread Turner, John

Sorry.  I don't have all the answers (far from it), and even if I can answer
a question, I don't always have the time to reply to every message.

John

 -Original Message-
 From: chasee [mailto:janee_ya;yahoo.com]
 Sent: Wednesday, November 13, 2002 10:33 PM
 To: Tomcat Users List
 Subject: RE: When to use two tomcat instances
 
 
 
 Thanks, john for clearing it up. Seems this time I asked the 
 correct question, so I got your reply.  it's the first time 
 I got my posted question answered...
 Chasee
  Turner, John [EMAIL PROTECTED] wrote:
 Two Tomcat instances = two separate installations of Tomcat. Different
 server.xml, different work directory, different webapp root.
 
 As far as when do you need it that's up to you, there is no 
 hard and fast
 rule.
 
 We use multiple Tomcats because it allows us to segregate our 
 clients' apps,
 and manage each Tomcat instance separately without 
 interfering with the
 others.
 
 John
 
 -Original Message-
 From: chasee
 To: tomcat user
 Sent: 11/13/02 9:55 PM
 Subject: When to use two tomcat instances
 
 
 Hello all,
 
 Just got this question: when do we need two tomcat instances? and what
 does it mean? two copies of web server or the server creates two
 instances when it is started?
 
 I'd appreciate any response.
 
 Chasee
 
 
 
 -
 Do you Yahoo!?
 Yahoo! Web Hosting - Let the expert host your site
 
 --
 To unsubscribe, e-mail: 
 For additional commands, e-mail: 
 
 
 
 -
 Do you Yahoo!?
 Yahoo! Web Hosting - Let the expert host your site
 

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: When to use two tomcat instances

2002-11-14 Thread Turner, John

My bad.  I used the word installation improperly.  There is only one set
of Tomcat binaries.

John


 -Original Message-
 From: Josh G [mailto:josh;gfunk007.com]
 Sent: Wednesday, November 13, 2002 10:35 PM
 To: Tomcat Users List
 Subject: Re: When to use two tomcat instances
 
 
 You don't need two installs, just two server.xml files. I do 
 it to keep both
 development and test versions of a site which uses the root 
 context but
 doesn't justify an apache install.
 
 -Josh
 --
 And can you tell me doctor why I still can't get to sleep?
 And why the channel 7 chopper chills me to my feet?
 And what's this rash that comes and goes, can you tell me 
 what it means?
 God help me, I was only 19
 
 
 - Original Message -
 From: Turner, John [EMAIL PROTECTED]
 To: 'chasee ' [EMAIL PROTECTED]; 'tomcat user '
 [EMAIL PROTECTED]
 Sent: Thursday, November 14, 2002 1:18 PM
 Subject: RE: When to use two tomcat instances
 
 
 
  Two Tomcat instances = two separate installations of 
 Tomcat.  Different
  server.xml, different work directory, different webapp root.
 
  As far as when do you need it that's up to you, there is 
 no hard and
 fast
  rule.
 
  We use multiple Tomcats because it allows us to segregate 
 our clients'
 apps,
  and manage each Tomcat instance separately without 
 interfering with the
  others.
 
  John
 
  -Original Message-
  From: chasee
  To: tomcat user
  Sent: 11/13/02 9:55 PM
  Subject: When to use two tomcat instances
 
 
  Hello all,
 
  Just got this question: when do we need two tomcat 
 instances? and what
  does it mean? two copies of web server or the server creates two
  instances when it is started?
 
  I'd appreciate any response.
 
  Chasee
 
 
 
  -
  Do you Yahoo!?
  Yahoo! Web Hosting - Let the expert host your site
 
  --
  To unsubscribe, e-mail:
 mailto:tomcat-user-unsubscribe;jakarta.apache.org
  For additional commands, e-mail:
 mailto:tomcat-user-help;jakarta.apache.org
 
 
 
 --
 To unsubscribe, e-mail:   
mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: When to use two tomcat instances

2002-11-14 Thread Turner, John

Let's get the terminology correct.

We currently run Tomcat for 2 dozen clients.  Each client has their own
Tomcat.  There is only one bin directory (/usr/local/tomcat/bin).  There are
multiple server.xml files, multiple work directories, and multiple webapp
roots. One server.xml, one work directory, and one webapp root per client.

With this configuration, I can stop and start individual instances (or
whatever word you want to use) of Tomcat at will, without affecting any of
the others.  All instances of Tomcat use the same JVM/JAVA_HOME.

Each server.xml = one instance

Each instance is manageable by itself without bothering other instances.

John


 -Original Message-
 From: Christopher Moon [mailto:cmoon;fas.harvard.edu]
 Sent: Wednesday, November 13, 2002 10:54 PM
 To: Tomcat Users List
 Subject: Re: When to use two tomcat instances
 
 
 I use multiple Tomcat instances...one for production, 
 testing, development
 and training.  I have decided to get with multiple instances 
 for testing
 and development it is nice to be able to test different 
 versions of the
 JDK, which to the best of my knowledge you cannot set in the 
 server.xml
 and it must be set via the $JAVA_HOME enviroment variable.  
 Please let me
 know if this is incorrect because it would be great to not 
 have to keep
 multiple instances.  However, there is one other concern that 
 made up go
 with multiple instances.  Suppose, you make a change to the server
 configuration that requires you to restart the instance.  If you are
 running one instance with multiple server.xml's and restart 
 the testing
 instance you will also restart the production instance.  Again if I am
 wrong please let me know.
 
 Hope this helps
 Chris
 
 
 On Thu, 14 Nov 2002, Josh G wrote:
 
  You don't need two installs, just two server.xml files. I 
 do it to keep both
  development and test versions of a site which uses the root 
 context but
  doesn't justify an apache install.
 
 
 --
 To unsubscribe, e-mail:   
mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: When to use two tomcat instances

2002-11-14 Thread Craig R. McClanahan


On 13 Nov 2002, kathee wrote:

 Date: 13 Nov 2002 23:11:32 -0500
 From: kathee [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Subject: Re: When to use two tomcat instances

 Is there a way, using the server.xml files to tell the instances to
 listen on the same port, but on different NICs??

Yes.  The key is to use the address attribute in your Connector
element to define the IP address of the NIC that this particular connector
should listen on.

Of course, you'll probably want to make sure you've got your DNS set up
with different hostnames for the different NICs, but that's outside the
domain of Tomcat ...


 Kat

Craig


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: When to use two tomcat instances

2002-11-13 Thread Turner, John
 
Two Tomcat instances = two separate installations of Tomcat.  Different
server.xml, different work directory, different webapp root.

As far as when do you need it that's up to you, there is no hard and fast
rule.

We use multiple Tomcats because it allows us to segregate our clients' apps,
and manage each Tomcat instance separately without interfering with the
others.

John

-Original Message-
From: chasee
To: tomcat user
Sent: 11/13/02 9:55 PM
Subject: When to use two tomcat instances


Hello all,

Just got this question: when do we need two tomcat instances? and what
does it mean? two copies of web server or the server creates two
instances when it is started?

I'd appreciate any response.

Chasee



-
Do you Yahoo!?
Yahoo! Web Hosting - Let the expert host your site

--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: When to use two tomcat instances

2002-11-13 Thread chasee

Thanks, john for clearing it up. Seems this time I asked the correct question, so I 
got your reply.  it's the first time I got my posted question answered...
Chasee
 Turner, John [EMAIL PROTECTED] wrote:
Two Tomcat instances = two separate installations of Tomcat. Different
server.xml, different work directory, different webapp root.

As far as when do you need it that's up to you, there is no hard and fast
rule.

We use multiple Tomcats because it allows us to segregate our clients' apps,
and manage each Tomcat instance separately without interfering with the
others.

John

-Original Message-
From: chasee
To: tomcat user
Sent: 11/13/02 9:55 PM
Subject: When to use two tomcat instances


Hello all,

Just got this question: when do we need two tomcat instances? and what
does it mean? two copies of web server or the server creates two
instances when it is started?

I'd appreciate any response.

Chasee



-
Do you Yahoo!?
Yahoo! Web Hosting - Let the expert host your site

--
To unsubscribe, e-mail: 
For additional commands, e-mail: 



-
Do you Yahoo!?
Yahoo! Web Hosting - Let the expert host your site


Re: When to use two tomcat instances

2002-11-13 Thread Josh G
You don't need two installs, just two server.xml files. I do it to keep both
development and test versions of a site which uses the root context but
doesn't justify an apache install.

-Josh
--
And can you tell me doctor why I still can't get to sleep?
And why the channel 7 chopper chills me to my feet?
And what's this rash that comes and goes, can you tell me what it means?
God help me, I was only 19


- Original Message -
From: Turner, John [EMAIL PROTECTED]
To: 'chasee ' [EMAIL PROTECTED]; 'tomcat user '
[EMAIL PROTECTED]
Sent: Thursday, November 14, 2002 1:18 PM
Subject: RE: When to use two tomcat instances



 Two Tomcat instances = two separate installations of Tomcat.  Different
 server.xml, different work directory, different webapp root.

 As far as when do you need it that's up to you, there is no hard and
fast
 rule.

 We use multiple Tomcats because it allows us to segregate our clients'
apps,
 and manage each Tomcat instance separately without interfering with the
 others.

 John

 -Original Message-
 From: chasee
 To: tomcat user
 Sent: 11/13/02 9:55 PM
 Subject: When to use two tomcat instances


 Hello all,

 Just got this question: when do we need two tomcat instances? and what
 does it mean? two copies of web server or the server creates two
 instances when it is started?

 I'd appreciate any response.

 Chasee



 -
 Do you Yahoo!?
 Yahoo! Web Hosting - Let the expert host your site

 --
 To unsubscribe, e-mail:
mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org



--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: When to use two tomcat instances

2002-11-13 Thread Christopher Moon
I use multiple Tomcat instances...one for production, testing, development
and training.  I have decided to get with multiple instances for testing
and development it is nice to be able to test different versions of the
JDK, which to the best of my knowledge you cannot set in the server.xml
and it must be set via the $JAVA_HOME enviroment variable.  Please let me
know if this is incorrect because it would be great to not have to keep
multiple instances.  However, there is one other concern that made up go
with multiple instances.  Suppose, you make a change to the server
configuration that requires you to restart the instance.  If you are
running one instance with multiple server.xml's and restart the testing
instance you will also restart the production instance.  Again if I am
wrong please let me know.

Hope this helps
Chris


On Thu, 14 Nov 2002, Josh G wrote:

 You don't need two installs, just two server.xml files. I do it to keep both
 development and test versions of a site which uses the root context but
 doesn't justify an apache install.


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: When to use two tomcat instances

2002-11-13 Thread kathee
Is there a way, using the server.xml files to tell the instances to
listen on the same port, but on different NICs??

Kat

On Wed, 2002-11-13 at 22:34, Josh G wrote:
 You don't need two installs, just two server.xml files. I do it to keep both
 development and test versions of a site which uses the root context but
 doesn't justify an apache install.
 
 -Josh
-- 
kathee [EMAIL PROTECTED]


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: When to use two tomcat instances

2002-11-13 Thread Josh G
Nah it's multiple instances, just one install is what i was trying to say.

-Josh
--
And can you tell me doctor why I still can't get to sleep?
And why the channel 7 chopper chills me to my feet?
And what's this rash that comes and goes, can you tell me what it means?
God help me, I was only 19


- Original Message -
From: Christopher Moon [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, November 14, 2002 1:54 PM
Subject: Re: When to use two tomcat instances


 I use multiple Tomcat instances...one for production, testing, development
 and training.  I have decided to get with multiple instances for testing
 and development it is nice to be able to test different versions of the
 JDK, which to the best of my knowledge you cannot set in the server.xml
 and it must be set via the $JAVA_HOME enviroment variable.  Please let me
 know if this is incorrect because it would be great to not have to keep
 multiple instances.  However, there is one other concern that made up go
 with multiple instances.  Suppose, you make a change to the server
 configuration that requires you to restart the instance.  If you are
 running one instance with multiple server.xml's and restart the testing
 instance you will also restart the production instance.  Again if I am
 wrong please let me know.

 Hope this helps
 Chris


 On Thu, 14 Nov 2002, Josh G wrote:

  You don't need two installs, just two server.xml files. I do it to keep
both
  development and test versions of a site which uses the root context but
  doesn't justify an apache install.


 --
 To unsubscribe, e-mail:
mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org



--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: When to use two tomcat instances

2002-11-13 Thread chasee

Thanks to all for sharing your insights and nice opinions!

I read through running.txt. the original purpose of introducing catalina_base to help 
with multiple instances might be to meet the needs of different applications. I guess 
different conf’s, logs and webapps directories are required.

If you need to test on different jdk versions, the catalina.bat/startup.bat would be 
getting different system values. Then you need two solid instances, i.e. two 
installations

Does it make sense?

chasee

 
Christopher Moon [EMAIL PROTECTED] wrote:I use multiple Tomcat instances...one 
for production, testing, development
and training. I have decided to get with multiple instances for testing
and development it is nice to be able to test different versions of the
JDK, which to the best of my knowledge you cannot set in the server.xml
and it must be set via the $JAVA_HOME enviroment variable. Please let me
know if this is incorrect because it would be great to not have to keep
multiple instances. However, there is one other concern that made up go
with multiple instances. Suppose, you make a change to the server
configuration that requires you to restart the instance. If you are
running one instance with multiple server.xml's and restart the testing
instance you will also restart the production instance. Again if I am
wrong please let me know.

Hope this helps
Chris


On Thu, 14 Nov 2002, Josh G wrote:

 You don't need two installs, just two server.xml files. I do it to keep both
 development and test versions of a site which uses the root context but
 doesn't justify an apache install.


--
To unsubscribe, e-mail: 
For additional commands, e-mail: 



-
Do you Yahoo!?
Yahoo! Web Hosting - Let the expert host your site


Re: When to use two tomcat instances

2002-11-13 Thread Josh G
I'd be _very_ suprised if you could do this from an application level. You
could probably do it in the OS tho, map port 8081 or some such to 8080 on
eth1 or some such. I'm not a networking guy so I'm not sure how to go about
it Look into IPTABLES and such i think that's where I'd start anyway
;-)

-Josh
--
And can you tell me doctor why I still can't get to sleep?
And why the channel 7 chopper chills me to my feet?
And what's this rash that comes and goes, can you tell me what it means?
God help me, I was only 19


- Original Message -
From: kathee [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, November 14, 2002 2:11 PM
Subject: Re: When to use two tomcat instances


 Is there a way, using the server.xml files to tell the instances to
 listen on the same port, but on different NICs??

 Kat

 On Wed, 2002-11-13 at 22:34, Josh G wrote:
  You don't need two installs, just two server.xml files. I do it to keep
both
  development and test versions of a site which uses the root context but
  doesn't justify an apache install.
 
  -Josh
 --
 kathee [EMAIL PROTECTED]


 --
 To unsubscribe, e-mail:
mailto:tomcat-user-unsubscribe;jakarta.apache.org
 For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org



--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: When to use two tomcat instances

2002-11-13 Thread Hassan Schroeder
kathee wrote:

Is there a way, using the server.xml files to tell the instances to
listen on the same port, but on different NICs??


See the sections:

 http://jakarta.apache.org/tomcat/tomcat-3.3-doc/tomcat-ug.html#standard_contexts
and
 http://jakarta.apache.org/tomcat/tomcat-3.3-doc/tomcat-ug.html#context_addcust

:: for Virtual Host setup examples...

Note: I haven't used this, since I front-end with Apache and let it
handle multiple IP addresses, so I can't vouch for the accuracy!

HTH,
--
Hassan Schroeder - [EMAIL PROTECTED]
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com

  dream.  code.




--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org