Now I understand the stateful session bean gets removed after max-bean-life. How can I check the situation and decide whether or not to create a new session without letting exception be thrown?
And what should I do to create a new session?
Any help appreciated