<bean id="MNG04AjaxTransaction" class="jp.co.isid.gfo.guidetour.struts.action.transaction.manage.MNG04AjaxTransaction">
<property name="userInfoDao" ref="UserInfoDao" />
<property name="configInfoDao" ref="ConfigInfoDao" />
</bean>
<bean id="OPN02AjaxTransaction" class="jp.co.isid.gfo.guidetour.struts.action.transaction.common.OPN02AjaxTransaction">
<property name="tourInfoDao" ref="TourInfoDao" />
<property name="tourResInfoDao" ref="TourResInfoDao" />
</bean>
<bean id="MNG02AjaxTransaction" class="jp.co.isid.gfo.guidetour.struts.action.transaction.manage.MNG02AjaxTransaction">
<property name="tourInfoDao" ref="TourInfoDao" />
</bean>
<!-- db -->
<bean id="CodeNameMstDao" class="jp.co.isid.gfo.guidetour.ibatis.dao.CodeNameMstDAO">
<property name="sqlMapClient" ref="sqlMapClient" />
</bean>
<bean id="UserInfoDao" class="jp.co.isid.gfo.guidetour.ibatis.dao.UserInfoDAO">
<property name="sqlMapClient" ref="sqlMapClient" />
</bean>
<bean id="TourResInfoDao" class="jp.co.isid.gfo.guidetour.ibatis.dao.TourResInfoDAO">
<property name="sqlMapClient" ref="sqlMapClient" />
</bean>
<bean id="TourInfoDao" class="jp.co.isid.gfo.guidetour.ibatis.dao.TourInfoDAO">
<property name="sqlMapClient" ref="sqlMapClient" />
</bean>
<bean id="ConfigInfoDao" class="jp.co.isid.gfo.guidetour.ibatis.dao.ConfigInfoDAO">
<property name="sqlMapClient" ref="sqlMapClient" />
</bean>
<bean id="sqlMapClient" class="org.springframework.orm.ibatis.SqlMapClientFactoryBean">
<property name="configLocation" value="classpath:SqlMapConfig.xml"/>
<property name="dataSource" ref="dataSource"/>
</bean>
<!-- for deploy
<bean id="dataSource" class="org.springframework.jndi.JndiObjectFactoryBean" >
<property name="jndiName">
<value>java:comp/env/jdbc/commonDataSource</value>
</property>
-->
<!-- for spring container test -->
<bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource" >
<property name="driverClassName" value="com.mysql.jdbc.Driver"/>
<property name="url" value=""/>
<property name="username" value=""/>
<property name="password" value=""/>
</bean>
<aop:config>
<aop:pointcut expression="execution(* jp.co.isid.gfo.guidetour.struts.action.transaction.*.*.*(..))" id="transactionAction"/>
<aop:advisor advice-ref="transactionManagerAdivice" pointcut-ref="transactionAction"/>
</aop:config>
<tx:advice id="transactionManagerAdivice" transaction-manager="transactionManager">
<tx:attributes>
<tx:method name="*"
propagation="REQUIRED"
rollback-for="xx.xx.xx..TransactionException" />
</tx:attributes>
</tx:advice>
<bean id="transactionManager" class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
<property name="dataSource" ref="dataSource"/>
</bean>