• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ServletListners

 
upul indrajith
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Both HttpSessionActivationListner and HttpSessionListner respond to the same HttpSessionEvent. How can this happen ? What listner code will run first ?
 
Michael Ku
Ranch Hand
Posts: 510
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I encourage you to look closer at the definition of these two listeners and what they respond to. Also, the HttpSessionEvent is the object that is passed to the methods that are called when events happen. It is not the event that triggers the method call. This is a very fundamental difference that you need to grasp.
 
upul indrajith
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic