• Post Reply Bookmark Topic Watch Topic
  • New Topic

At The Time of doGet Invoke...  RSS feed

 
Manas Ahlaad
Ranch Hand
Posts: 165
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,
When the web server invokes doGet OR doPost method
of the servlet, does the servlet instance already
exists before the request?
manas
 
Bosun Bello
Ranch Hand
Posts: 1511
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, if the server was setup to load a particular server on startup. If not, the servlet instance does not exist until the first request is made. Also, the server creates threads for multiple requests (the default behavior), unless the SingleThreadModel interface is implemented.
------------------
Bosun
SCJP for the Java� 2 Platform
 
Manas Ahlaad
Ranch Hand
Posts: 165
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks for your answer
regards
manas
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!