• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Rob Spoor
  • Devaka Cooray
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Jj Roberts
  • Al Hobbs
  • Piet Souris

Distributed Web Application

 
Ranch Hand
Posts: 389
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think the answers are right. It just let you find out the undoable ones.
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic