so even if session A is passivated then object b is notified because it is a listener for activation/passivation of any session
Agreed that a and b are listeners for activation/passivation, but NOT for "any session". ONLY for the session(s) with which they are bound.
So when session A is passivated, all the objects bound to session A are notified.
Thanks
Neeraj