Page 1 of 1

About Question enthuware.jwpv6.2.770 :

Posted: Sat Apr 09, 2016 9:25 pm
by himaiMinh
Hi,
Why value unbound cannot be printed first?
In DD, we don't need to include HttpSessionBindingListener, only HttpSessionListener is needed. So, the order of which listener should be implemented is not specified.

Re: About Question enthuware.jwpv6.2.770 :

Posted: Sun Apr 10, 2016 11:28 pm
by admin
As per the JavaDoc for invalidate method, "Invalidates this session then unbinds any objects bound to it." It is clear that the attributes are unbound after the session is invalidated. Therefore, "value unbound", which is being printed by HttpSessionBindingListener cannot be printed before "session destroyed".

HTH,
Paul.