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


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


    網站導航:
     
    主站蜘蛛池模板: 国产精品成人亚洲| 亚洲精品在线免费观看| 四虎永久免费影院在线| 亚洲日韩中文字幕一区| 国产成在线观看免费视频| 亚洲午夜电影在线观看高清| 亚洲日韩久久综合中文字幕| 国产一卡2卡3卡4卡2021免费观看 国产一卡2卡3卡4卡无卡免费视频 | 免费在线观看一区| 亚洲А∨精品天堂在线| 亚洲专区在线视频| 最近新韩国日本免费观看 | 亚洲熟妇成人精品一区| 一级毛片在线播放免费| 亚洲愉拍99热成人精品热久久| 91视频免费观看| 卡一卡二卡三在线入口免费| 久久久久久久尹人综合网亚洲| 亚洲日韩国产一区二区三区在线| 日本人护士免费xxxx视频| 亚洲视频在线观看免费视频| 免费看黄视频网站| 亚洲AV成人无码网站| AA免费观看的1000部电影| 亚洲国产综合AV在线观看| 91麻豆国产免费观看| 亚洲精品456人成在线| 无码av免费毛片一区二区| 亚洲精品中文字幕无码A片老| 免费**毛片在线播放直播| a毛片免费观看完整| 亚洲国产精品午夜电影| 免费观看亚洲人成网站| 久久精品国产免费一区| 国产婷婷综合丁香亚洲欧洲| **实干一级毛片aa免费| 色欲aⅴ亚洲情无码AV蜜桃| 亚洲精品无码午夜福利中文字幕 | 韩国亚洲伊人久久综合影院| 亚洲中文字幕无码久久2017| 99久久国产热无码精品免费|