Assigning Servlets to different ports.

2001-03-05 Thread William Wishon
Hi, My goal is to be able to have different servlets mapped to "/" on different ports. I have not found any way to do this in server.xml, so I started grep'ing and groveling through the code to find out more. Now as far as I can tell right now what I want to do is not possible using Tomc

Re: Assigning Servlets to different ports.

2001-03-05 Thread Mel Martinez
There might be a more 'elegant' way but a simple brute force solution is to create a simple dispatcher servlet (or JSP) that does the following: String host = request.getHeader("HOST"); String port = "80"; if(host.indexOf(":")>-1){ port = host.substring(host.indexOf(":")+1); } //assume getDispa

RE: Assigning Servlets to different ports.

2001-03-06 Thread Uijin Hong
Why don't you just run 2 servlet container(Tomcat)s for each port? -Original Message- From: William Wishon [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 06, 2001 9:27 AM To: [EMAIL PROTECTED] Subject: Assigning Servlets to different ports. Hi, An example of what I'm tr

RE: Assigning Servlets to different ports.

2001-03-06 Thread Mel Martinez
ilto:[EMAIL PROTECTED]] > Sent: Tuesday, March 06, 2001 9:27 AM > To: [EMAIL PROTECTED] > Subject: Assigning Servlets to different ports. > > > Hi, > > > > An example of what I'm trying to do is to have a GET > on "/" of port 8080 > retur

Re: Assigning Servlets to different ports.

2001-03-06 Thread Shawn McMurdo
ache rewrites directly > to dispatch to any static resources. > > Mel > > > -Original Message- > > From: William Wishon > > [mailto:[EMAIL PROTECTED]] > > Sent: Tuesday, March 06, 2001 9:27 AM > > To: [EMAIL PROTECTED] > > Subject: Assigning Servlets to different

RE: Assigning Servlets to different ports.

2001-03-06 Thread William Wishon
[EMAIL PROTECTED] > Subject: Re: Assigning Servlets to different ports. > > > Hi Mel, > If you are interested in an approach to getting Tomcat to serve > apps on multiple ports, you might want to check out the > Enhydra Enterprise 4.0 source. > We create multiple ContextManager

RE: Assigning Servlets to different ports.

2001-03-06 Thread cmanolache
eat. From my code archeology I was > just about to conclude that it wasn't possible in tomcat 3.2.1 until your > comment made me think that I had missed something. > > -Bill > > > -Original Message- > > From: Shawn McMurdo [mailto:[EMAIL PROTECTED]] >

RE: Assigning Servlets to different ports.

2001-03-06 Thread Chris Pepper
At 12:35 PM -0800 2001/03/06, [EMAIL PROTECTED] wrote: >If what you want to do is support virtual hosts - tomcat supports >virtual hosts using a single ContextManager ( the contextManager is a >representation for a "server" that may have multiple hosts). > >There is no special representation for

RE: Assigning Servlets to different ports.

2001-03-06 Thread William Wishon
Costin, > If what you want to do is support virtual hosts - tomcat supports > virtual hosts using a single ContextManager ( the contextManager is a > representation for a "server" that may have multiple hosts). I don't mind using virtual hosts, but they don't do what I'm looking for. I have two

Re: Assigning Servlets to different ports.

2001-03-06 Thread Shawn McMurdo
l Message- > > From: Shawn McMurdo [mailto:[EMAIL PROTECTED]] > > Sent: Tuesday, March 06, 2001 10:25 AM > > To: [EMAIL PROTECTED] > > Subject: Re: Assigning Servlets to different ports. > > > > > > Hi Mel, > > If you are interested in an approac

Re: Assigning Servlets to different ports.

2001-03-06 Thread Shawn McMurdo
ports. > > > > > > > > The best performance scenario might be to use Apache > > > > to listen to several ports and rewrite them to go to a > > > > single tomcat 'delegator' servlet which then > > > > dispatches them to servlets/JSPs