|
24 | 24 | http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
|
25 | 25 | http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.0.xsd
|
26 | 26 | http://www.springframework.org/schema/jdbc http://www.springframework.org/schema/jdbc/spring-jdbc-3.0.xsd
|
27 |
| - http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd"> |
| 27 | + http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd" |
| 28 | + default-autowire="byName"> |
28 | 29 |
|
29 | 30 | <bean id="userTransactionService" class="com.atomikos.icatch.config.UserTransactionServiceImp"
|
30 | 31 | init-method="init" destroy-method="shutdownForce">
|
|
42 | 43 | </bean>
|
43 | 44 |
|
44 | 45 | <!-- Construct Atomikos UserTransactionManager, needed to configure Spring -->
|
45 |
| - <bean id="AtomikosTransactionManager" class="com.atomikos.icatch.jta.UserTransactionManager" |
| 46 | + <bean id="transactionManager" class="com.atomikos.icatch.jta.UserTransactionManager" |
46 | 47 | init-method="init" destroy-method="close" depends-on="userTransactionService">
|
47 | 48 |
|
48 | 49 | <!-- IMPORTANT: disable startup because the userTransactionService above
|
|
55 | 56 | </bean>
|
56 | 57 |
|
57 | 58 | <!-- Also use Atomikos UserTransactionImp, needed to configure Spring -->
|
58 |
| - <bean id="AtomikosUserTransaction" class="com.atomikos.icatch.jta.UserTransactionImp" |
| 59 | + <bean id="userTransaction" class="com.atomikos.icatch.jta.UserTransactionImp" |
59 | 60 | depends-on="userTransactionService">
|
60 | 61 | <property name="transactionTimeout" value="300" />
|
61 | 62 | </bean>
|
|
64 | 65 | <bean id="JtaTransactionManager"
|
65 | 66 | class="org.springframework.transaction.jta.JtaTransactionManager"
|
66 | 67 | depends-on="userTransactionService">
|
67 |
| - <property name="transactionManager" ref="AtomikosTransactionManager" /> |
68 |
| - <property name="userTransaction" ref="AtomikosUserTransaction" /> |
| 68 | + <property name="transactionManager" ref="transactionManager" /> |
| 69 | + <property name="userTransaction" ref="userTransaction" /> |
69 | 70 | </bean>
|
70 | 71 |
|
71 | 72 | <tx:annotation-driven transaction-manager="JtaTransactionManager" />
|
|
0 commit comments