Hy,
you must throw javax.servlet.UnavailableException during servlet's init();
See the apidoc for this class, on its various construction options you
might find usefull.
Try this call:
throw new UnavailableException(
-1, // Temporary unavailable for unknown (negative) seconds.
this,
"Could not open resource connections in " +
this.getClass().getName() + ".init()"
);
Cezar
On Mon, 30 Aug 1999, Guy Nirpaz wrote:
> Hi all,
>
> I'm developing a servlet which opens several resources connections at
> the init() method.
> I would like to make sure that if init() fails for any reason, like
> being unable to open a resource connection , any request from the
> servlet will force init() to start again - as if it is the first time
> the servlet is being called.
>
> I would appreciate any kind of help.
>
> Thanks ,
>
> Guy
>
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html