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


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


          網(wǎng)站導(dǎo)航:
           
          主站蜘蛛池模板: 东辽县| 噶尔县| 万全县| 汨罗市| 长垣县| 台湾省| 高清| 林口县| 福海县| 汉沽区| 蓝田县| 区。| 攀枝花市| 姚安县| 荆门市| 依安县| 贵阳市| 明光市| 东乡| 新丰县| 吉木萨尔县| 张家界市| 娱乐| 临海市| 丘北县| 舟山市| 荥阳市| 兴海县| 公安县| 海南省| 盐亭县| 黔东| 安平县| 平安县| 台东市| 广水市| 胶南市| 苏尼特左旗| 海林市| 海原县| 微山县|