• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

difference between ServletContext and DefaultServletContext ........Confusing me

 
amar nath jha
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

this question is from mock exam at javaranch
http://www.javaranch.com/carl/SCWCD.htm
question no 45.


Which statements are true about distributable web applications

1) There will be one instance of ServletContext in each VM
2) There will be only one instance of the default ServletContext in only one VM(the default ServletContext is one created for all servlets not deployed as part of an application are assigned)
3) All request that are part of a session must be handled by one VM at a time
4) Container must notify any session attributes implementing the HttpSessionActivationListener interface during migration of a session from one VM to another

What is the difference between ServletContext and DefaultServletContext ?
What is the use of creating defaultServletContext.?

If you can provide some tutorial or some site having explnation then that would be much better.

Thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic