<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    敬的世界

    常用鏈接

    統計

    最新評論

    關于 EJB

    Overview

    EJB consists of a remote interface, a home interface and an EJBimplementation.??

    The remote interface declares business methods that clients of the EJB?may invoke. The remote interface must extend interface javax.ejb.EJBObject. The EJB container generates a class that implements the remote interface.

    The home interface?provides create?methods for creating new EJB instances.?finder methods for finding EJB instance and remove methods fro removing EJB instances.?

    The EJB?container?provides the EJB's runtime environment and life-cycle management.?

    What EJB?Container does ?

    ?The EJB container manages an EJB's client interfactons, method invocations transactions security, exceptions, etc. Clients of an EJB do nnot interact directly with the EJB,Clients access the EJB container to obtain remote references to EJB instances.

    The EJB container also manages the life cycles of its EJBs. EJB containers typically perform pooling of EJB instances to enhance performance. The EJB container also can create new EJB instances and remove existing instances.

    The Methods calls :

    When? a client invokes a create method in the home interface, the EJB container invokes method ejbCreate. The EJB implementation must provide an ejbCreate
    method for each create method declared in the home interface.? The ejbCreate method must have the same number and types of auguments as their corresponding create methods.

    The EJB container invokes method ejbRemove in response to an invocation of method remove in the home interface. The EJB container also may invoke method ejbRemove if the session expires due to lengthy inactivity. Method ejbRemove should free resources the EJB has used.

    The EJB container invokes method ejbPassivate when the container determines that the EJB is no longer needed in memory. The algorithm that the EJB container uses to determine when it should passivate an EJB is application -server dependent . Many application servers enforce a least recently used policy, which? passivated EJBs that clients have not accessed recently.

    When the EJB container passivates an EJB, the container serializes the state of the EJB and removes the EJB from memory.?

    The EJB container invokes method ejbActivate to restore an EJB instance that the container passivated previousy. The EJB container activates an EJB instance if the client assoicated with the EJB instance invokes a business method of that EJB instance.

    The EJB container reads the state information that it saved during passivation and restores the EJB instance in memory.

    EJB Transaction

    The Java 2 Enterprise Edition supports distributed transaction. A distributed transaction is a transaction that includes multiple databases or multiple application servers.? For example , a distributed transaction could transfer funds from an account at one bank into an account at another bank atomically.

    Container Managed Transaction Type

    NotSupported?? Method does not support transactions . The EJB container suspends the existing transaction context if the method is invoked within a transaction context.

    Required????????? Method requires a transaction. The EJB container creates a new transaction if the method is invoked without an existing transaction context and commits the transaction at the end of the method

    Supports?????????? Method supports transactions. The EJB container will not create a new transaction if the methods is invoked without an existing transaction context. but will execute the method as part of an existing transaction context if one is available.

    RequiresNew???Method requires a new transaction. The EJB container suspends the existing transaction context and starts a new transaction if the method is invoked as part of another transaction.

    Mandatory?????? The method must execute in an existing transaction context. The EJB container throws a TransactionRequiredException if the method is invoked without a valid transaction context.

    Never????????????? ?The method must not execute in a transaction context. The EJB container throws a RemoteException if the method is invoked inside a transaction context.

    posted on 2008-10-07 23:09 picture talk 閱讀(129) 評論(0)  編輯  收藏


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


    網站導航:
     
    主站蜘蛛池模板: 黄网站色视频免费看无下截| 国产亚洲精品免费视频播放| 亚洲国产精品无码专区在线观看| 亚洲精品无码专区久久| 91成人免费观看| 国产成人aaa在线视频免费观看 | 69国产精品视频免费| 女人张开腿给人桶免费视频| 久久久久亚洲av成人无码电影| 亚洲第一网站免费视频| 国产精品免费无遮挡无码永久视频| 久久久久亚洲精品无码网址| 一本久久免费视频| 国产午夜亚洲精品理论片不卡| 97在线视频免费公开视频| 亚洲国产高清人在线| 国产人在线成免费视频| 亚洲精品无码av中文字幕| 无码专区一va亚洲v专区在线| 一级做a爰片久久毛片免费看 | 亚洲欧美综合精品成人导航| 四虎1515hm免费国产| 中文字幕无线码免费人妻| 亚洲天堂中文资源| 热久久精品免费视频| 大妹子影视剧在线观看全集免费 | eeuss影院ss奇兵免费com| 亚洲日本va在线视频观看| 95老司机免费福利| 久久精品国产亚洲AV未满十八| 亚洲精品黄色视频在线观看免费资源| 在线免费观看伊人三级电影| 亚洲国产成人久久99精品| 又粗又硬又大又爽免费视频播放| 中文字幕乱码免费看电影| 亚洲日产2021三区在线| 亚洲av高清在线观看一区二区| 免费视频精品一区二区三区| 亚洲欧洲免费无码| 亚洲av日韩av不卡在线观看| 免费人成在线视频|