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
/servlet
which should
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
.
- Original Message -
From: Mayne, Peter [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Sunday, March 23, 2003 7:42 PM
Subject: load-on-startup order
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
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
I have two load-on-startup servlets in my apps web.xml . One is set as 0,
the other as 1.
According the the servlet spec, containers should guarantee that servlet's
with lower load-on-startup values should load first, but according to my
logs, Servlet 1 gets its init called before servlet 0.
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