my mistake, you are right.
apologies,
zm.

-----Original Message-----
From: A mailing list for discussion about Sun Microsystem's Java Servlet API
Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of Nic Ferrier
Sent: Saturday, January 05, 2002 8:29 PM
To: [EMAIL PROTECTED]
Subject: Re: Share session object between Apache JServ1.1 and GNUJSP


Zvika Markfeld <[EMAIL PROTECTED]> writes:

> I don't think that is correct. As in every j2ee technology,
implementations
> of the very same spec are quite different in their technicalities. In HTTP
> Sessions, the mechanism relies on a session id generated by the container
> and sent to the client either using a cookie or through URL Rewriting. For
> this reason, Apache JServ may use cokkies in the format like:
> jservSessionid=123abc999jservcookie19990405
> whereas GNUJSP might use the format:GNUJSPSessionCookie=XXXytrhfgyrht123.
> These two, naturally, would not be compliant.
> But more important than that, even if they were, the sessions are java
> objects that live in the Servlet Container's JVM, which means, that you
> probably cannot share these sessions between different Servers, which run
on
> different JVMs.
> Large vendors such as as Weblogic, IBM, etc., implements a clustering
> support that may include session persistency to Database, but I don't know
> of any support for Servlet Containers of different vendors (might be a
good
> idea for a new spec...), especially when it comes to the freebee Servers.
> zm.

You have not understood what I said:

"GNUJSP just uses the session management provided by the container.
 Since JServ supports the session API you can easily share sessions
 between the 2."

GNUJSP just calls HttpServletRequest.getSession(). It does *not*
have it's own session implementation (why would it?).

As long as the GNUJSP servlet is loaded into the same ServletContext as
the other servlets there will be no problem with sharing sessions.



Nic Ferrier

___________________________________________________________________________
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

___________________________________________________________________________
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

Reply via email to