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-startup>1</load-on-startup>
  </servlet>

in B's web.xml:

  <servlet>
    ...
    <load-on-startup>5</load-on-startup>
  </servlet>

which should make A start first. However, when Tomcat starts, B's init() is
called first. B's init() attempts to make a connection to A's servlet, but A
hasn't started yet, so everything hangs.

Am I doing this correctly?

Thanks.

PJDM

With your setup/solution you realy can�t tell if application A will load before B.


Load-on-startup orders the servlets in each application (web.xml)

--
Tomas

Health is merely the slowest possible rate at which one can die.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to