Venkat Yerramsetty wrote:
Does that mean, session listeners no matter the order in the DD with mixup of context listeners will be called prior to the context listeners, and if we have a couple of session listeners then their order would have to be taken care by the developer?
Its not like the order of the session listeners doesn't matters. Just as Abhijit pointed out, the sessions listeners will be called in the reverse order of declaration of their own kind, but if a context listener precedes sessions listeners in the DD, only then the session listeners takes the precedence and it is perfectly suited.
Think about it, if a context is destroyed before the session listeners are called, what good it will be? That's why session listeners have precedence over context listeners but amongst themselves, they follow the order in which they were declared.