This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Mock Exam Question

Narendra Dhande
Ranch Hand
Posts: 951
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Following is the Practice exam question in

Q. Which of the following statement are correct for distributable web application ? (check all corrcet answer)

1. You can not rely on the ServletContext to share data.
2. You can not rely on ServletConfig for distributaed web application
3. Each JVM has a seperate instance of a Servlet Context.
4. HttpSession can be shared accross distributable web-applications

The answers given are 1,3,4

Why 4 is correct. The HttpSession is live only in on JVM at a time. The sesions can be migarted , but only one instance is available a a point of time. The How can it share accross the web-application. Also the Sessions attributes are not thread safe.

Any clue ?

  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic