Results 1 to 4 of 4

Thread: if use jtaTransactionManager for GlobalTransactions

Hybrid View

  1. #1
    Join Date
    Sep 2004
    Posts
    6

    Default if use jtaTransactionManager for GlobalTransactions

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

  2. #2
    Join Date
    Aug 2004
    Posts
    218

    Default

    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.

  3. #3
    Join Date
    Sep 2004
    Posts
    6

    Default who can for example

    who can for example to use jdbcTemplate via jtaTransactionManager?

  4. #4
    Join Date
    Sep 2004
    Location
    San Diego, CA
    Posts
    49

    Default

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •