Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Listener methods execution order.

 
Bhavik Patel
Ranch Hand
Posts: 155
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
let's say i am adding attribute or removing attibute to the session.something like
session.setAttribute("employee",EmpObj);
i am implementing both HttpSessionBindingListener & HttpSessionAttributeListener ..then which listener methods will be called first?? becuase for HttpSessionBindingListener we are not registering it in the DD..Just want to double check which listener methods will be called first..
 
wise owen
Ranch Hand
Posts: 2023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hope this one may help.
 
Bhavik Patel
Ranch Hand
Posts: 155
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks ..looks like HttpSessionBindingListener method is called first follwed by HttpAttributeListener method
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic