how will i use jdbcTemplate? there is not XADataSource
in the jdbcTemplate.
Printable View
how will i use jdbcTemplate? there is not XADataSource
in the jdbcTemplate.
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.
who can for example to use jdbcTemplate via jtaTransactionManager?
You should read 7. Transaction management, 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