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)航:
           
          主站蜘蛛池模板: 诸城市| 曲麻莱县| 多伦县| 儋州市| 喀喇沁旗| 郎溪县| 永胜县| 萨嘎县| 马公市| 湟中县| 河北区| 尖扎县| 岳池县| 濉溪县| 福清市| 敦化市| 安徽省| 连南| 丘北县| 横峰县| 海淀区| 札达县| 邳州市| 类乌齐县| 安福县| 遵义市| 青冈县| 清新县| 灵台县| 富裕县| 三台县| 洛南县| 九龙城区| 三穗县| 禄劝| 报价| 柯坪县| 永州市| 普格县| 莱芜市| 定南县|