Why pool Stateless session beans?

后端 未结 5 626
半阙折子戏
半阙折子戏 2020-12-02 19:04

Stateless beans in Java do not keep their state between two calls from the client. So in a nutshell we might consider them as objects with business methods. Each method take

5条回答
  •  半阙折子戏
    2020-12-02 19:33

    Life cycle of the Statelesss session beans are Doesnot exist, Passive and MethodReady(Passive or Inactive) state.To optimize on perormance, instead of traversing the bean all through from create to method ready state, container manages the bean between active and passive states through the container callbacks - ejbActivate() and ejbPassivate() there by managing the bean pool.

    sreenut

提交回复
热议问题