ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  On-Demand Stateful EJBs
Subject:   Wasting instances on the server
Date:   2005-03-20 18:34:06
From:   Swami
Response to: Wasting instances on the server

The client could have the stateful instance removed when the current user logs off. This is possible as we could store the instance of the delegate in the session and have the session binding listener invoke a method on the delegate to remove the instance of the stateful bean if one was created. For non-web based clients, we could have this logic embeded in the log off event.