Hi
Please verify the explanations given by me for the following question on distributed web application.
Ques: You are developing a web application which will be distributed across multiple JVMs. Which of the following will you NOT do?
1.depend on sessionActivated / sessionPassivated methods to do critical tasks.
Explanation: There is no such method defined for any listener so choice # 1 is wrong.
2.depend on URL rewriting for implementing session
Explanation: session can be migrated to a different JVM. This could be done.
3.depend on sendRedirect to redirect a request
Explanation: The sendRedirect method could be used to redirect a request to a
servlet in a different JVM so this could be done.
4.depend on attributes kept in the context scope
Explanation: This is the right choice. This should not be done.
5.depend on attributes kept in a session
Explanation: This could be done.
Thanks
Ravi