>>> David Kamber <[EMAIL PROTECTED]> 25-Feb-00 2:58:04 PM >>>
>I wonder whether it is possible in an non-intrusive way to replace
the
>session object? I do not want to take over session management from
the
>Servlet engine but I'd like to subclass the session object, which
means
>I'd have to have access to the factory (if there is one) and tell it
to
>produce a different kind of object.
Not in the standard API.
You can do it by sub-classing the HttpServletRequest but that's an
interface so you have to do quite a bit of proxy calling to get the 2
methods you need:
getSession()
getSession(boolean)
This is a pain.
However, session subclassing isn't something I've ever wanted to do
before - sessions are normally untouchable because of security
implications. I'm sure there's probably a better way to do what you
want to do.
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