Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Invoking sequence of the listeners  RSS feed

David Jones
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

Could anyone tell me the invoking sequence of the listeners on the session by the Container :

Case 1 : if an new attribute is added to the session
1) HttpSessionAttributeListeners.attributeAdded
2) HttpSessionBindingListeners.valueBound

Case 2 : if the attribute is already exist in the session
1) HttpSessionAttributeListeners.attributeReplaced
2) HttpSessionBindingListeners.valueUnBound
3) HttpSessionBindingListeners.valueBound

Case 3 : if the attribute is remove from the session
1) HttpSessionAttributeListeners.attributeRemoved
2) HttpSessionBindingListeners.valueUnBound

Am I right?

It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!