Announcement Announcement Module
Collapse
No announcement yet.
if use jtaTransactionManager for GlobalTransactions Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • if use jtaTransactionManager for GlobalTransactions

    how will i use jdbcTemplate? there is not XADataSource
    in the jdbcTemplate.

  • #2
    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.

    Comment


    • #3
      who can for example

      who can for example to use jdbcTemplate via jtaTransactionManager?

      Comment


      • #4
        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

        Comment

        Working...
        X