posts - 4, comments - 5, trackbacks - 0, articles - 10

          spring事務最佳實踐

          Posted on 2005-11-23 10:55 勇敢的心 閱讀(219) 評論(0)  編輯  收藏

          A good starting point for a small application with a couple of transactional business objects is the TransactionProxyFactoryBean. This option is easy to configure and provides enough flexibility for most needs.

          For applications with several business classes that need transaction demarcations, we recommend using a parent/child setup . You specify a TransactionProxyFactoryBean as an abstract parent bean that has the base definitions. You can then easily reference this parent bean for any class that needs to have transactions applied without repeating all the configuration settings for all the classes.

          If you have a really large application with many business objects, then you should consider using an auto-proxying solution. This includes both the BeanNameAutoProxyCreator and the DefaultAdvisorAutoProxyCreator mentioned earlier.

          Annotations are going to see increased use once J2SE 5.0 is in widespread use. We believe that at that point, the annotation solutions discussed earlier in this chapter often will replace the other solutions entirely based on external bean configuration files.


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


          網站導航:
           
          主站蜘蛛池模板: 浑源县| 芮城县| 巨野县| 沈阳市| 崇明县| 册亨县| 庄河市| 耒阳市| 纳雍县| 金昌市| 延长县| 湟中县| 平利县| 阿克陶县| 肥城市| 雷山县| 湖南省| 南部县| 鹤山市| 成武县| 兴安盟| 叶城县| 岗巴县| 莆田市| 银川市| 石城县| 同仁县| 茌平县| 介休市| 龙川县| 称多县| 黑龙江省| 当雄县| 涞水县| 栖霞市| 德格县| 永宁县| 新和县| 山丹县| 莎车县| 临西县|