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


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


          網站導航:
           
          主站蜘蛛池模板: 新闻| 鹿泉市| 界首市| 托里县| 嘉祥县| 长白| 衡阳市| 甘德县| 抚顺市| 河池市| 衡东县| 加查县| 思茅市| 南丹县| 扶沟县| 双城市| 饶阳县| 高碑店市| 广河县| 益阳市| 深泽县| 涪陵区| 芦溪县| 巍山| 汝州市| 霍城县| 于都县| 岗巴县| 呼和浩特市| 报价| 吉水县| 岳池县| 石林| 潜山县| 蕉岭县| 忻城县| 郴州市| 新蔡县| 湘潭县| 永安市| 龙井市|