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


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


    網站導航:
     
    主站蜘蛛池模板: 午夜无码A级毛片免费视频 | 久久久久国色AV免费观看| 免费无码A片一区二三区| 久久久青草青青亚洲国产免观| 美景之屋4在线未删减免费 | 在线精品一卡乱码免费| 久久久亚洲裙底偷窥综合| 免费人成激情视频在线观看冫| 国产亚洲老熟女视频| 一级毛片免费全部播放| 国产AⅤ无码专区亚洲AV| 成人网站免费大全日韩国产 | 91亚洲一区二区在线观看不卡| 毛片在线全部免费观看| 亚洲国产精品一区二区久久| 久久免费动漫品精老司机| 亚洲一区综合在线播放| 香蕉97超级碰碰碰免费公| 亚洲中文字幕久久精品无码A| 免费激情视频网站| 婷婷国产偷v国产偷v亚洲| 亚洲人成电影网站国产精品 | 老牛精品亚洲成av人片| 亚洲?V无码乱码国产精品| 免费在线观看一区| 国产亚洲一区二区三区在线观看| 国产无遮挡无码视频免费软件| 亚洲无线电影官网| 午夜成人免费视频| 日韩精品无码永久免费网站| 亚洲国产精彩中文乱码AV| 久久精品无码专区免费青青| 中文字幕精品三区无码亚洲 | 亚洲AV无码成人网站久久精品大 | 毛片无码免费无码播放| 亚洲乱码一区二区三区国产精品| 国产精品色午夜免费视频| caoporm碰最新免费公开视频| 久久国产亚洲高清观看| 国产精品免费视频播放器| 国产色无码精品视频免费|