Women in Technology

Hear us Roar



Article:
  On-Demand Stateful EJBs
Subject:   Wasting instances on the server
Date:   2005-03-20 18:34:13
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.
Full Threads Oldest First

Showing messages 1 through 1 of 1.

  • Wasting instances on the server
    2005-03-21 01:16:34  Johal [View]

    That should work.
    Another problem is when the app tier has terminated the SFSB but the webtier still has the handle. (say user touches his web session by browsing pages, but doesn't the SFSB is not touched since he is browsing other pages)