Win a copy of 97 Things Every Java Programmer Should Know this week in the Java in General forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
  • Piet Souris
  • salvin francis
  • fred rosenberger

how a container persists session?

Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A container that migrates seesion between vms or persists sessions is required to notify all attributes bound to sessions implementing HttpSessionActivationListener.
does anyone know how to persist a session?
Ranch Hand
Posts: 2166
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Weishe,
as you probably know this is not a task for the programmer but for the container or the administration of the container.
Check Peter den Haans answers in this thread:

Posts: 3252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Indeed. Session persistence and distribution are left to the container - a web developer typically has no control over that process.
As regards to the mechanism, if the session is passivated purely to conserve memory then a popular and simple way to do that is to serialize it onto the filesystem. For session distribution, you can serialize it into a database CLOB field. I can imagine that you could also directly exchange serialized session information between containers over the network - does anyone know a container doing that?
- Peter
[ March 14, 2002: Message edited by: Peter den Haan ]
What does a metric clock look like? I bet it is nothing like this tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
    Bookmark Topic Watch Topic
  • New Topic