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.
-----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 1:42 AM To: [EMAIL PROTECTED] Subject: Re: Share session object between Apache JServ1.1 and GNUJSP Peter Shipley <[EMAIL PROTECTED]> writes: > Is it possible to share a session object between Apache JServ and GNUJSP. I > am only familiar with Tomcat and this is pretty different. I have heard that > because of the Servlet specification used in JServ the session object cannot > be shared. > > Basically I just want to create a session in a Servlet, store a value, then > retrieve it in the JSP. > > > Any thoughts...bearing in mind I a stuck with using Jserv, GNUJSP, and > Apache web server. GNUJSP just uses the session management provided by the container. Since JServ supports the session API you can easily share sessions between the 2. 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
