View Full Version : if use jtaTransactionManager for GlobalTransactions
bbbb
Sep 4th, 2004, 09:53 AM
how will i use jdbcTemplate? there is not XADataSource
in the jdbcTemplate.
Loumeister
Sep 4th, 2004, 10:46 AM
It's your driver that must be and XA compliant or your AppServer supports global transactions for a non-XA driver. You should be able to use JDBCTemplate for either or.
bbbb
Sep 5th, 2004, 10:24 PM
who can for example to use jdbcTemplate via jtaTransactionManager?
timmorrow
Sep 7th, 2004, 12:29 PM
You should read 7. Transaction management (http://www.springframework.org/docs/reference/transaction.html), it provides some examples.
In practice, the use of JdbcTemplate is no different, you simply have to do it inside a TransactionTemplate or use declarative transaction management and setup your container to use an XA datasource.
I also recommend reading chapter 9 of J2EE Development without EJB.
Tim
Powered by vBulletin® Version 4.2.1 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.