Both HttpSessionActivationListner and HttpSessionListner respond to the same HttpSessionEvent. How can this happen ? What listner code will run first ?
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.