<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)  編輯  收藏


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


    網站導航:
     
    主站蜘蛛池模板: 成全高清视频免费观看| 99国产精品免费视频观看| 啦啦啦手机完整免费高清观看| 亚洲美女视频网站| 30岁的女人韩剧免费观看| 亚洲老熟女@TubeumTV| 青草草色A免费观看在线| 亚洲最大的黄色网| 成年美女黄网站色大免费视频| 2017亚洲男人天堂一| 女人18一级毛片免费观看| 久久久久亚洲精品无码网址色欲| 日本特黄特色aa大片免费| 免费人成网站永久| 亚洲精品国精品久久99热一| 久久一区二区三区免费播放| 77777_亚洲午夜久久多人| 欧美a级成人网站免费| 337P日本欧洲亚洲大胆艺术图| 亚洲精品tv久久久久久久久久| 91精品全国免费观看青青| 精品亚洲A∨无码一区二区三区| 114一级毛片免费| 亚洲av成人无码网站…| 国产亚洲日韩在线三区| 2015日韩永久免费视频播放 | 亚洲午夜一区二区电影院| 毛片视频免费观看| 一级做性色a爰片久久毛片免费| 亚洲av午夜福利精品一区人妖| 巨波霸乳在线永久免费视频| 亚洲国产精品成人午夜在线观看| 亚洲成?Ⅴ人在线观看无码| 免费一级毛片无毒不卡| 亚洲中文字幕无码中文字| 91麻豆国产自产在线观看亚洲 | 亚洲美女在线观看播放| 宅男666在线永久免费观看| 最近免费中文字幕MV在线视频3 | 在线中文高清资源免费观看| aa级女人大片喷水视频免费|