(1) Use <dependency ....> ?
(2) Can you provide some brief details on what the treatments are?
Thank you for the quick answer !!
In our application, when a user connects we create a ActorSession in the data base so that we can know on which machine he's connected to. And while an ActorSession is active (not closed) the user cannot connect on another machine until he closes it by disconnecting himself.
So when the application starts, we have to close all pending sessions other whise the users who were connected, can't connect anymore.
We did this when deploying the .war by using the ContextListener, this solution is not cluster safe.