On Wed, 2003-02-12 at 06:40, Stephen McConnell wrote:
> On the subject of early failure - I don't see how your going to get a
> fail condition earlier than init() - unless Merlin is hosting the
> web-server --> webserver is hosting a web-app --> web-app is suppled
> with services based on dependencies that are pre-assembled by Merlin
> (which is possible using the embedded Tomcat approach).
>
Actually, if you specify the servlet to be loaded at startup the init is
called right away. Check out the <load-on-startup> element for a
servlet.
The short and skinny of it is that if the value is 1 or more then the
servlet is initialized when it is deployed. The value determines where
it is in the order of initialization, with 1 being the highest
precedence. So, to have a servlet be the first loaded when deployed you
want your web.xml to look like the following.
<web-app>
...
<servlet>
...
<load-on-startup>1</load-on-startup>
</servlet>
...
</web-app>
Using this parameter the initialization will fail at deployment giving
you the error messages before the first user hits it.
--
Richard Wallace
AIM Consulting and Computers
http://www.a--i--m.com
"Providing New Technology,
the Old-Fashioned Way"
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]