• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Question

 
farihah noushene
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
select the correct sequence of action that a serverlet container perform before servicing any request.

1 instantiate listener defined in deployment descripter
2 initialize filter defined in dd
3 initialize servlet that are set to load on start up
4 call the context initialize method on listener implementing servlet context listener interface
 
Shivani Chandna
Ranch Hand
Posts: 380
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The order is listener(instantiate/initialize), filter and then servlet.

Regards,
Shivani
 
Nikhil Jain
Ranch Hand
Posts: 392
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The order is
1 -> 4 -> 2 -> 3
 
Niranjan Deshpande
Ranch Hand
Posts: 1277
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hey what the ?

i was expecting th options -

load class
instantiate
init ( )
service ( )
destroy( )

the options seem to be totally out of the world.
can anyone throw some light ?
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can anyone throw some light ?

farihah's question is about initialization order at the container's startup.
You declare servlets, listeners, filters, etc.. in web.xml. The Servlet Specification makes it clear in which order they are initialized.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic