2 Replies Latest reply on Oct 13, 2004 1:52 AM by manawajaws

    Stateful Bean removal detection from client side

    manawajaws

      Hi,

      Do somebody know how to detect Stateful Session Bean removal from client side please?
      My client has to test the bean validity before every method call, that is using brandwith...

      Thanx for help,

      Fabrice

        • 1. Re: Stateful Bean removal detection from client side
          frito

          I don't understand why you try to do so, aside from asking the server would cost bandwidth, too.
          Does it happen very often your sessions time out? Then you should think about a longer timeout (or what is your application good for when many sessions die?). If this doesn't happen very often, don't think about the bandwidth used when accessing the non existing beans. You won't recognize a significant increase.

          • 2. Re: Stateful Bean removal detection from client side
            manawajaws

            Hi Frito,

            Thanx for reply, but we've chosen a solution that keeps the Stateful bean alive: the client launches a thread that periodically calls a method on the bean to avoid passivation and removal.

            Thanx anyhow

            Fab