Mayne, Peter wrote:
Tomcat 4.1.18
I have two applications, A and B, where a servlet in B depends on a servlet
in A being up, so I have
in A's web.xml:
servlet
...
load-on-startup1/load-on-startup
/servlet
in B's web.xml:
servlet
...
load-on-startup5/load-on-startup
Instead of performing the necessary logic in the init method, why not try
lazy-loading. Only initialize whatever you need when it is requested the
first time. By the way, what are you trying to do? I've never heard of
anyone having this kind of requirement/architecture. Just curious.
-
Title: RE: load-on-startup order
So load-on-startup only orders within an application, not between applications?
Application A is a message handler. Application B is a listener which must register with A when it starts, so A can forward incoming messages to B. Therefore, B can't lazy load
Jeff,
Try 10 and 20 or 1 and 2.
I know negative numbers don't necessarily start up before 1, maybe 0 doesn't
either.
Andy
-Original Message-
From: Jeff Wishnie [mailto:[EMAIL PROTECTED]]
Sent: 05 September 2002 18:22
To: Tomcat Users List
Subject: load-on-startup order seems