tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nencho Lupanov" <nencholupa...@googlemail.com>
Subject Re: tomcat webapp startup order
Date Fri, 25 May 2007 11:35:01 GMT
Hi Tim,

That's a pretty good idea,
Thanks.


2007/5/25, Tim Lucia <timlucia@yahoo.com>:
>
>
>
> > -----Original Message-----
> > From: Nencho Lupanov [mailto:nencholupanov@googlemail.com]
> > Sent: Friday, May 25, 2007 7:22 AM
> > To: Tomcat Users List
> > Subject: tomcat webapp startup order
> >
> > Hi all,
> >
> > I have vanilla tomcat 5.5 installed.
> > I also have axis2 web application deploying on every startup.
> > the problem is that the axis2 web app needs to read a url from the same
> > tomcat server, only that the server is not yet started
> > because in the same moment is yet deploying the axis2 web app.
> > is there any way to solve/work-around this problem?
>
> You can start a thread in the ServletContextListener of the 1st
> application
> which allows the application to complete startup from Tomcat's
> perspective.
> Then the thread you started can wait / retry until it can read the 2nd URL
> at which time you can have the thread mark the 1st application as
> available
> / ready / whatever.
>
> Tim
>
> >
> > Regards,
> > Nencho
>
>
>
> ---------------------------------------------------------------------
> 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
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message