>>> Siros Supavita <[EMAIL PROTECTED]> 10/21/99 1:14:31 PM >>>

>I think Nic's idea is Ok. But I saw that Nic used method
>"getSession(String)" ... which belong to
>"javax.servlet.http.HttpSessionContext" class.
> It's already deprecated right now in Java Servlet 2.1.
> I'm not sure that this method work properly in all
>Servlet Engine and this method will be removed in next
>release of Java Servlet Specification.

I think you've got the wrong end of the stick Siros.

The method I was using was from a purely conceptual class called
MySessionManager which replaces the session management behaviour of
the servlet engine.

This is what the original post was about, whether such a thing was
possible to do.

You're partly right though. Even though the sesison manager is
outside the servlet engine one should probably still try to make it
look standard by providing a getSession(String,boolean) method rather
than the plain old getSession(String).

Note though that any class like my MySessionManager has no interface
in the Servlet API. It must return valiid HttpSession objects but it
is not itself an API entity., so how it actually chooses to do it is a
decision for only the implementor.



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

Reply via email to