Announcement Announcement Module
Collapse
No announcement yet.
Transaction propagation support in Spring Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Transaction propagation support in Spring

    I have this scenario:
    AppServer1 - EJB1 - DB1
    AppServer2- EJB2 - DB2

    My application is deployed in Appserver2 alongwith the EJB2.

    My application architecture:
    EJB2- Service Interface - Controller - DAOs.
    Controller decides which datasource to be used by DAOs and injects that at runtime.
    DAOs are using JDBCDAOSupport class to access DB2.

    EJB1 starts a transaction passes the transaction context to EJB2, both CMT. EJB2 supports transaction remoting and say I cannot change much code in EJB2[supplied by 3rd party].

    Now , I have to figure out a way so that the DAOs can participate in the existing transaction and be a part of distributed transaction.
    I am expecting to use Spring fo that so that Spring can recognize the existing transaction and can continue using the same transaction. I know that we can use JTATransactionManager [XADatasource]but I am looking for more details than this.

    Note: Which datasource to use itself is a runtime decision.
    Last edited by rajuv; Sep 5th, 2007, 01:29 PM.
Working...
X