yeah, it does seem weird to me too.  I must be doing something wrong,
but here's more details.  my default directory in serverl.xml is to
"myapp".  In myapp/WEB-INF/web.xml I have the following entries.

    <display-name>thisapp</display-name>
    <listener>
        <listener-class>test.ApplicationListener</listener-class>
    </listener>

when I start tomcat 4.0.3, I see it print out the name "thisapp" twice.
the test listener creates a dummy object and prints out using
system.out.print("cxt init called");

peter



"Shapira, Yoav" wrote:
> 
> Howdy,
> 
> >was worded a bit awkward. Basically I will have multple webapps running
> >in Tomcat. I want to make sure that each webapp loads it's particular
> >application.
> 
> That's interesting.  We've been using tomcat 4.0.1 with multiple webapps
> installed.  Each has its own context listener, and each only gets the
> contextInitialized (and for that matter, the contextDestroyed which we
> care about more) only once.  So I was fairly confident this part of
> tomcat works well, at least in 4.0.1.  I've also tested it in 4.0.4 and
> 4.1.7 beta, but only with one of my webapps on the server.
> 
> I wonder what's different in our configurations that could cause this
> behavioral difference...
> 
> Yoav Shapira
> Millennium ChemInformatics
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to