File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes session in distributable sys Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Professional Certification » Web Component Certification (SCWCD/OCPJWCD)
Reply Bookmark "session in distributable sys" Watch "session in distributable sys" New topic
Author

session in distributable sys

tony wang
Greenhorn

Joined: Apr 13, 2002
Posts: 14
Hi,
If a session migrates from a JVM to another one in the same app context, how to implement such app and the servlets?
a- <distributable/> in web.xml
b- implements HttpSessionActivationListener to servlets and declared in web.xml <listener>
c- anything else
What about HttpSessionAttributeListener, HttpSessionBindingListener?


SCJP,SCWCD
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 16617


If I remember correctly, and Satya will correct me if I'm wrong, but It stated in the Specs, that when Sessions migrate servers, that you cannot guarantee which JVM those listeners will fire. More to the point, it stated that the Listener may fire from a different JVM then where you are.
I think that that is important when you want listeners in a distributed environment.
Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
 
IntelliJ Java IDE
 
subject: session in distributable sys
 
Threads others viewed
Basics for a Distributed Web App.
Across JVM's
Deployment Descriptor
DD distributable and Session Migration
distributable DD - what does it do ?
developer file tools