lqxue

          常用鏈接

          統(tǒng)計

          book

          tools

          最新評論

          Passivation and activation ?

          Passivation and activation are two phases of a resource management technique that reduces the number of bean instances needed to service all clients. Passivation is the process of disassociating a bean instance from its EJB object so that the instance can be reused or evicted to conserve memory. Activation is the process of associating a bean instance with an EJB object so that it can service a request. Beans are passivated when there is a lull in their use and activated when the EJB object receives a client request.

          The java.ejb.SessionBean and javax.ejb.EntityBean interface include two callback methods that notify a bean instance when it is about to passivated or activated. The ejbPassivate( ) method notifies a bean that it is about to passivated; the ejbActivate( ) method notifies a bean that it is about to activated.

          The mechanisms employed in passivation and activation change depending on the bean type. Stateful beans are usually evicted, while entity beans and stateless beans are pooled. A more detailed account of how different bean types passivated and activated is found under the FAQs for that type.

          posted on 2007-06-29 16:17 lqx 閱讀(155) 評論(0)  編輯  收藏


          只有注冊用戶登錄后才能發(fā)表評論。


          網(wǎng)站導(dǎo)航:
           
          主站蜘蛛池模板: 池州市| 兴仁县| 永城市| 志丹县| 澎湖县| 阿克苏市| 泸水县| 白山市| 阳春市| 吕梁市| 西林县| 咸阳市| 建湖县| 梅河口市| 庄浪县| 海晏县| 天气| 积石山| 广西| 屏东县| 新疆| 镇沅| 南木林县| 开江县| 灌云县| 井陉县| 郁南县| 汾西县| 筠连县| 佳木斯市| 银川市| 七台河市| 同仁县| 海阳市| 合水县| 云林县| 怀宁县| 资中县| 玉门市| 曲麻莱县| 海林市|