Greetings!
Suppose you have an HttpSessionAttributeListener and an
Object which implements HttpSessionBindingListener.
Since both receive an HttpSessionBindingEvent, which
one would be notified first when the Object which implements
HttpSessionBindingListener is added to (or replaced in) a session?
I haven't tested this out yet, however, it seems to me that
the Object implementing HttpSessionBindingListener should be notified
first as by the time the HttpSession.setAttribute(
String, Object) call
completes, and the session realizes that an attribute was added,
the Object which was added should already be aware of the fact.
If this is the case, does the same hold true when it is explicitly
removed from a session or the session is invalidated?
Right or wrong, is the behavior guaranteed (not vendor specific)?
I though I read about this recently but am unable to locate the reference.
Thanks.