Passivating SFSB

Discussions

EJB programming & troubleshooting: Passivating SFSB

  1. Passivating SFSB (3 messages)

    Hi!
    Can I passivate a Stateful Session Bean whenever I want, not only when the container does? And how?

    Thanks,
    dgij

    Threaded Messages (3)

  2. Passivating SFSB[ Go to top ]

    now why in the world would you want to do that??????????

    joost.
  3. Passivating SFSB[ Go to top ]

    Ok, what we want is some way to make the user´s session lifetime lasts the time we tell it to last. We want each user´s session lives as long as its SFSB.
    Ah, we´re using Weblogic 6.0.
    Any idea?
  4. Passivating SFSB[ Go to top ]

    You can specify the idle timeout of a SFSB in the deployment descriptor, but not the total life time.

    When a client session ends you could call ejbRemove() on the SFSB. I think that's what you need to do and not passivation when the client session ends.

    I don't know of any way to explicitly passivate a SFSB. I am not sure why you would want to do that. The container does that sort of resource management.

    Pranab