athrunwang

          紀元
          數據加載中……
          applicationContext.xml
          <bean id="propertyConfigurer"
          class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
          <property name="locations">
          <list>
          <value>classpath:configuration.properties</value>
          </list>
          </property>
          </bean>
          <bean id="dataSource" class="org.springframework.jndi.JndiObjectFactoryBean">
          <property name="jndiName">
          <value>${jndi}</value>
          </property>
          </bean>
          <bean id="transactionManager"
          class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
          <property name="dataSource" ref="dataSource"></property>
          </bean>
          <tx:advice id="txAdvice" transaction-manager="transactionManager">
          <tx:attributes>
          <tx:method name="get*" read-only="true" />
          <tx:method name="*" rollback-for="Exception" />
          </tx:attributes>
          </tx:advice>
          <aop:config>
          <aop:pointcut expression="execution(public * com.a.b.service.*.*(..))"
          id="myPointcut" />
          <aop:advisor advice-ref="txAdvice" pointcut-ref="myPointcut" />
          </aop:config>

          posted on 2011-11-02 19:12 AthrunWang 閱讀(167) 評論(0)  編輯  收藏


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


          網站導航:
           
          主站蜘蛛池模板: 湟中县| 全州县| 庆安县| 治县。| 涪陵区| 武夷山市| 丰镇市| 维西| 昔阳县| 扶沟县| 潼关县| 行唐县| 方山县| 嫩江县| 余江县| 伊川县| 綦江县| 宁都县| 建平县| 安庆市| 新巴尔虎左旗| 尼勒克县| 乐山市| 军事| 新宁县| 泗阳县| 高雄县| 渝中区| 鹿邑县| 乌什县| 寿光市| 迁安市| 青田县| 湄潭县| 侯马市| 福建省| 平泉县| 祁阳县| 永胜县| 永仁县| 三原县|