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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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.