Bartsch Axel wrote:
>
> If you want a session across multiple JVMs on the same server
> is this in principal the same problem as for sessions across
> multiple servers? Does the session API have a solution?
>
Yes to both. The basic idea is that you either:
a) Make all the objects in your session Serializable,
and the container streams them over to the appropriate
JVM as needed, automagically.
b) Use some sort of container-specific mechanism.
There's an outline of the requirements in the 2.3 spec,
section 7.7.2.
<URL:http://java.sun.com/products/servlet/download.html>
The thing is, not all containers support distributed
sessions. "Distributable" webapps were introduced
in 2.2, but they're optional. So you need to check
the documentation for your particular servlet container
to see what's possible. If it's a commercially supported
container, then I guarantee that there's some info
someplace on the vendor's website about how to set
things up. The aforementioned advanced-servlets thread
has some discussion about how particular containers
(like WebSphere or NAS) handle things.
-cks
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html