lqxue

          常用鏈接

          統(tǒng)計(jì)

          book

          tools

          最新評(píng)論

          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 閱讀(153) 評(píng)論(0)  編輯  收藏


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


          網(wǎng)站導(dǎo)航:
           
          主站蜘蛛池模板: 太仓市| 富川| 工布江达县| 昂仁县| 武夷山市| 吐鲁番市| 弋阳县| 进贤县| 巴林右旗| 江西省| 盘山县| 井陉县| 丰原市| 沈丘县| 嘉禾县| 巴林左旗| 南投市| 尉氏县| 天津市| 岳阳县| 青河县| 乡宁县| 贵定县| 娱乐| 开封市| 四川省| 彩票| 北宁市| 英德市| 六盘水市| 张掖市| 班玛县| 白水县| 湟中县| 库尔勒市| 板桥市| 都江堰市| 桂东县| 无为县| 阿拉善左旗| 商水县|