<bean id="eslDataSource" class="com.atomikos.jdbc.AtomikosDataSourceBean" init-method="init" destroy-method="close"> <property name="uniqueResourceName" value="mssql" /> <property name="xaDataSourceClassName" value="#{db['esl.driverClassName']}" /> <property name="xaProperties"> <props> <prop key="user">#{db['esl.username']}</prop> <prop key="password">#{db['esl.password']}</prop> <prop key="URL">#{db['esl.url']}</prop> </props> </property> <property name="testQuery" value="Select 1" /> <property name="minPoolSize" value="10" /> <property name="maxPoolSize" value="10" /> </bean> <bean id="AtomikosTransactionManager" class="com.atomikos.icatch.jta.UserTransactionManager" init-method="init" destroy-method="close"> <property name="forceShutdown" value="false" /> </bean> <bean id="AtomikosUserTransaction" class="com.atomikos.icatch.jta.UserTransactionImp"> <property name="transactionTimeout" value="300" /> </bean> <bean id="transactionManager" class="org.springframework.transaction.jta.JtaTransactionManager"> <property name="transactionManager" ref="AtomikosTransactionManager" /> <property name="userTransaction" ref="AtomikosUserTransaction" /> </bean>
2015/06/05
XA, JTA, Atomikos and Spring
피드 구독하기:
댓글 (Atom)
댓글 없음:
댓글 쓰기