You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Collins, Jim" <ji...@uk.nomura.com> on 2002/08/22 15:29:12 UTC

Order for starting WebApps

Hi,

Does anyone know how to specify the order in which Tomcat starts WebApps? I
have a servlet that loads a library used by other apps and I need to ensure
that this is started first.

Thanks

Jim. 


PLEASE READ: The information contained in this email is confidential
and intended for the named recipient(s) only. If you are not an intended
recipient of this email you must not copy, distribute or take any 
further action in reliance on it and you should delete it and notify the
sender immediately. Email is not a secure method of communication and 
Nomura International plc cannot accept responsibility for the accuracy
or completeness of this message or any attachment(s). Please examine this
email for virus infection, for which Nomura International plc accepts
no responsibility. If verification of this email is sought then please
request a hard copy. Unless otherwise stated any views or opinions
presented are solely those of the author and do not represent those of
Nomura International plc. This email is intended for informational
purposes only and is not a solicitation or offer to buy or sell
securities or related financial instruments. Nomura International plc is
regulated by the Financial Services Authority and is a member of the
London Stock Exchange.



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Order for starting WebApps

Posted by "Craig R. McClanahan" <cr...@apache.org>.

On Thu, 22 Aug 2002, Collins, Jim wrote:

> Date: Thu, 22 Aug 2002 14:29:12 +0100
> From: "Collins, Jim" <ji...@uk.nomura.com>
> Reply-To: Tomcat Users List <to...@jakarta.apache.org>
> To: 'Tomcat Users List' <to...@jakarta.apache.org>
> Subject: Order for starting WebApps
>
> Hi,
>
> Does anyone know how to specify the order in which Tomcat starts WebApps? I
> have a servlet that loads a library used by other apps and I need to ensure
> that this is started first.
>

Tomcat makes no guarantees about the order that webapps are started in.

A typical strategy for your scenario would be to have all the webapps call
the "start my library" method, and make that method smart enough to do its
thing only the first time it is called.  Then, it would not matter which
webapp happened to be started first.

> Thanks
>
> Jim.

Craig


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>