This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes ServletListners Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "ServletListners" Watch "ServletListners" New topic
Author

ServletListners

upul indrajith
Ranch Hand

Joined: Sep 01, 2007
Posts: 36
Both HttpSessionActivationListner and HttpSessionListner respond to the same HttpSessionEvent. How can this happen ? What listner code will run first ?
Michael Ku
Ranch Hand

Joined: Apr 20, 2002
Posts: 510
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

Joined: Sep 01, 2007
Posts: 36
Thanks
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: ServletListners