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:53:36 GMT
Hi david,

the web app do the call to this url itself and not upon a client request.
It's the axis2 web app that reads a policy file by reference.

Regards,
Nencho


2007/5/25, David Delbecq <delbd+jakarta@oma.be>:
>
> Or you can delay your intialization code to the first hit to
> webapplication (if faisable, using a requestfilter for example). At
> startup, tomcat won't respond to any request until all webapps have been
> started, so if filter code is reached, all webapps have been started.
>
> En l'instant précis du 25/05/07 13:28, Tim Lucia s'exprimait en ces
> termes:
> >
> >> -----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
> >
> >
>
>
> ---------------------------------------------------------------------
> 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