Skip to Content
author's profile photo
Former Member

Lifecycle of the Stateful Session Bean

Hi,

Is there any pooling done on the session bean instances (Stateful/Stateless)?

My question is on 'remove' what will happen to the bean instance, gets garbage collected?, goes back to the pool if there is one?

Thanks and Regards,

Prasad

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • author's profile photo
    Former Member
    May 03, 2004 at 10:39 AM

    Hi All,

    I got the answer for my question.

    The EJB Container keeps the stateless session(not stateful), entity, and message-driven bean instances in pools. All instances in a pool are equivalent and the EJB Container chooses a random instance to serve the client requests.

    Thanks,

    Prasad

    Add comment
    10|10000 characters needed characters exceeded