On Thu, 17 Oct 2002, Nick Sharples wrote:

>
> Shapira, Yoav writes:
>  > Hi,
>  > I don't know the direct answer to your question.
>  >
>  > But I'm curious as to the use-case that's requiring you to subclass
>  > HttpSession.  As opposed to, for example, binding your (Serializable)
>  > objects to the session?  Thanks,
>
> We have a clustered environment and some legacy code that binds
> objects to the session. What I'd like to do, in order to avoid any
> rewritting, is sub-class the session object and intercept getAttribute
> calls so that changes made to the datamodel are reflected by any
> objects pulled off of the session. I'm sure I've seen this being done,
> but can't remember where you set it.

Would HttpSessionBindingListener help with this?

And do you mean setAttribute instead of getAttribute?

Milt Epstein
Research Programmer
Integration and Software Engineering (ISE)
Campus Information Technologies and Educational Services (CITES)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>

Reply via email to