Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Session Management in Clustering

 
Ranch Hand
Posts: 312
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

Head First EJB Book says that only one copy of the session objects will be available for all jvm's. Container will manages these session objects and whenever the request goes to alternate server then the session objects will be moved to the server.

My Question is

1) How the application servers are maintaining the session objects.
Whether the container will manage the session objects as described above?
or will all the application servers will have a copy of the session objects?

2) If so, What will happen if the first servers gets down and the request goes to the second server?


Thanks & Regards,
M.S.Raman
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is this a Servlets Session question, or an EJB Stateful Session Bean question?

Mark
 
Malli Raman
Ranch Hand
Posts: 312
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Mark Spritzler:
Is this a Servlets Session question, or an EJB Stateful Session Bean question?

Mark



Hi Mark,

First my apologies for that I have mentioned the book name as "Head First EJB" instead of Head First Servlets & JSP in the above paragraph.(Head First EJB is always in my poor memory!).

As your question suggests that there seems to be a different mechanism for session management for stateful session ejb, I would like to know about the session management for stateful session ejb in clustering environment.

-M.S.Raman
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic