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

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

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

    敬的世界

    常用鏈接

    統計

    最新評論

    Read-Mostly Pattern

    For persistent data that is ony occasionaly updated, you can implement a "read-mostly pattern" in WebLogic Server by mapping a read-only and a read-write entity bean to the same data. You use the read-only entity bean for reads and the read-write entity bean for writes.

    The read-only entity EJB loads bean data at intervals specified by the read-timeout-seconds element in the entity-catch(or entity-cache-ref) stanza for the bean in weblogic-ejb-jar.xml. To ensure that the read-only bean always returns current data, the read-only bean must be invalidated when the read-write bean changes the entity bean data. You can configure WebLogic Server to automatically invalidate the read-only bean, or explicitly invaidate it in bean code, as described in Invalidating Read-Only Entity EJBs  Implicitly and Invalidating Read-Only Entity EJBs Explicitly respectively.

    In a WebLogic Server cluster, the read-mostly pattern gives clients of the read-only EJB the performance advantage of reading from cache, while clients of read-write EJB enjoy true transactional behavior---the read-write EJB's cached state always matches theh persistent data in the database.

    Invalidating Read-Only Entity EJBs Implicity 

    The invalidation-target element in the entity-descriptor stanza in weblogic-ejb-jar.xml identifies a read-only entity EJB that should be invalidated when a CMP entity bean has been modified.

    invalidation-target may only be specified for an EJB 2.0 CMP entity bean. The target ejb-name must be a read-only entity EJB.

    Invalidating Read-Only Entity EJBs Explicitly

    Invalidate a read-only entity bean by calling the following invalidate() method on either the CachingHome or CachingLocalHome interface.

    Listing 6-10 CachingHome and CachingLocalHome interfaces

      
    package weblogic.ejb;
    public interface CachingHome {
    public void invalidate(Object pk) throws RemoteException;
    public void invalidate (Collection pks) throws RemoteException;
    public void invalidateAll() throws RemoteException;
    public interface CachingLocalHome {
    public void invalidate(Object pk) throws RemoteException;
    public void invalidate (Collection pks) throws RemoteException;
    public void invalidateAll() throws RemoteException
    }

    posted on 2008-10-02 17:02 picture talk 閱讀(156) 評論(0)  編輯  收藏


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


    網站導航:
     
    主站蜘蛛池模板: 亚洲?v女人的天堂在线观看| 91禁漫免费进入| 国产jizzjizz免费看jizz| 亚洲伊人久久大香线蕉| 国产免费女女脚奴视频网| 亚洲人成综合在线播放| 67194熟妇在线永久免费观看 | 在线综合亚洲欧洲综合网站| 麻豆一区二区免费播放网站| 亚洲日本人成中文字幕| 日韩精品无码区免费专区| 亚洲色最新高清av网站| 最近2019中文字幕免费看最新| 亚洲熟女综合色一区二区三区 | 免费又黄又爽又猛大片午夜 | 亚洲电影中文字幕| 97视频免费观看2区| 亚洲噜噜噜噜噜影院在线播放 | 国产青草视频免费观看97| 真人无码作爱免费视频| 久久精品国产精品亚洲人人| 全免费a级毛片免费看| 亚洲欧洲国产视频| 国产精品公开免费视频| 岛国岛国免费V片在线观看| 色婷婷亚洲十月十月色天| 最近中文字幕mv免费高清电影 | 亚洲福利一区二区| 在线免费观看一级毛片| 免费无毒a网站在线观看| 亚洲AV无码成人精品区蜜桃| 成人浮力影院免费看| 美女露100%胸无遮挡免费观看| 国产亚洲美日韩AV中文字幕无码成人| 一级毛片免费视频| 亚洲人成色77777在线观看| 在线观看国产区亚洲一区成人| 美女内射毛片在线看免费人动物| 亚洲精品成a人在线观看☆| 亚洲中文字幕第一页在线| 免费视频专区一国产盗摄|