Servlet init failed once, what should happen on the next request

0 views
Skip to first unread message

Rohit Ghatol

unread,
Dec 18, 2007, 9:48:05 AM12/18/07
to Pune Java Puzzles
I have a servlet named LoginServlet. When the first request came to
the servlet, the servlet started its initialization and the
initiatization failed.

Now the same servlet gets another request, what happens? And most
important explain why? Think as if you where the person developing the
container.

Pratham

unread,
Feb 1, 2008, 5:49:01 AM2/1/08
to Pune Java Puzzles
Hi,

Initialization of the servlet is the one time process.
I think if the Initialization fails for the servlet for the first
request then for the next request it will throw an error and will not
try to initialize it again.
Reply all
Reply to author
Forward
0 new messages