'JEE web app: Does HttpSessionListener execute on the same thread as the code that calls invalidate
I have implemented HttpSessionListener and implemeted sessiondDestroyed() method.
From another controller class, I call httpSession.invalidate().
I notice that the same web thread that is running the controller class executes the sessionDestroyed() also. I expected that the container calls HttpSessionListener implementations in a different thread.
Or, is there a way of calling session.invalidate() such that this thread won't be blocked or slowed down by the sessionDestroyed() method
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
