Hi Bill,
I would suggest grabbing the current Enhydra Enterprise source from CVS.
The ENHYDRA_4_0_B_1_BRANCH branch is the branch
for the beta release that is coming any day now.
There have been significant changes since alpha4.

If you are interested in how it is done look at the source in
EE/services/Web/modules/ServletContiner/src/org/enhydra/servlet/servletManager/ServletManager.java

in particular.

If you want to see it in action, start the multiserver and access
http://localhost:8001/ for the admin app and
http://localhost:8004/ for the root war that leads to the tomcat examples.

Hope that helps.
Shawn

William Wishon wrote:

> Shawn,
>
>         Could you point me more specifically at where Enhydra uses multiple
> ContextManagers?  I just downloaded EE 4.0a4 and couldn't find any files
> that have examples of multiple ContextManagers on different ports serving
> groups of apps.  Whenever I try to use multiple ContextManagers on different
> ports I get lots of messages about removing duplicate servlets (like the jsp
> servlet, status servlet, exception servlet), and tomcat is unresponsive to
> any of my requests and refuses to shutdown, until I 'kill' it.
>
> Any help on figuring this out would be great.  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]]
> > 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 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 ContextManagers, where each ContextManager
> > handles the group of apps running on a particular connection (port).
> > This is currently using Tomcat 3.2.1.
> > Shawn
> >
> > Mel Martinez wrote:
> >
> > > --- Uijin Hong <[EMAIL PROTECTED]> wrote:
> > > > Why don't you just run 2 servlet container(Tomcat)s
> > > > for each port?
> > > >
> > >
> > > That could get memory expensive if you have to do this
> > > for several 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 appropriately.  And
> > > actually, you should just use apache 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 ports.
> > > >
> > > >
> > > > Hi,
> > > >
> > > > <snipped>
> > > >
> > > > An example of what I'm trying to do is to have a GET
> > > > on "/" of port 8080
> > > > return webapps/app1/index.html and a GET of "/" on
> > > > port 8081 return
> > > > webapps/app2/index.html.
> > > >
> > > > Thanks,
> > > > Bill
> > > >
> > > >
> > > >
> > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail:
> > > > [EMAIL PROTECTED]
> > > > For additional commands, email:
> > > > [EMAIL PROTECTED]
> > > >
> > > >
> > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail:
> > > > [EMAIL PROTECTED]
> > > > For additional commands, email:
> > > > [EMAIL PROTECTED]
> > > >
> > >
> > > __________________________________________________
> > > Do You Yahoo!?
> > > Get email at your own domain with Yahoo! Mail.
> > > http://personal.mail.yahoo.com/
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, email: [EMAIL PROTECTED]
> >
> > --
> > Shawn McMurdo              mailto:[EMAIL PROTECTED]
> > Lutris Technologies        http://www.lutris.com
> > Enhydra.Org                http://www.enhydra.org
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, email: [EMAIL PROTECTED]
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]

--
Shawn McMurdo              mailto:[EMAIL PROTECTED]
Lutris Technologies        http://www.lutris.com
Enhydra.Org                http://www.enhydra.org



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to