tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sharma, Siddharth" <Siddharth.Sha...@Staples.com>
Subject RE: configuring 2 servlets on different ports
Date Tue, 01 Aug 2006 13:49:38 GMT
All webapps listen on the same http port if deployed within the same tomcat
instance.
Your option is to deploy each webapp on its own instance of tomcat, each
listening on a different port. Creating a new instance of tomcat means a
separate JVM with all the additional needs from system resource perspective.
Is this an option for you?



-----Original Message-----
From: Williams, Jim [mailto:jwilliams@litle.com] 
Sent: Tuesday, August 01, 2006 9:20 AM
To: Tomcat Users List
Subject: RE: configuring 2 servlets on different ports

actually, they are already in separate webapps,
and I still can't find a way to configure them to 
bind to separate ports.



-----Original Message-----
From: Christopher Schultz [mailto:chris@christopherschultz.net] 
Sent: Monday, July 31, 2006 4:57 PM
To: Tomcat Users List
Subject: Re: configuring 2 servlets on different ports

Jim,

> I'm using tomcat 5.5, and tried creating 2 services, each with a 
> connector that used a different port.
> 
> Whatever I try for the context within these services, it appears as
> if both servlets are available on both ports.
>  
> Is there a magic combination of Context elements that would allow
this?

I think you'd need separate web.xml files for each context: one that
maps only servlet #1 and one that maps only servlet #2. But that means
that you aren't using the same exact configuration for both contexts,
which might be a deal-breaker for you.

-chris 
 
 
 
NOTICE:  This message, including all attachments transmitted with it, is for
the use of the addressee only. It may contain proprietary, confidential
and/or legally privileged information belonging to Litle & Co. No
confidentiality or privilege is waived or lost by any mistransmission. If
you are not the intended recipient, you must not, directly or indirectly,
use, disclose, distribute, print or copy any part of this message.  If you
believe you have received this message in error, please delete it and all
copies of it from your system and notify the sender immediately by reply
e-mail.  Thank you. 

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

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


Mime
View raw message