Announcement Announcement Module
No announcement yet.
Using TransactionTemplate in spring integration Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Using TransactionTemplate in spring integration


    I am trying to use spring's TransactionTemplate to perform programmatic transaction management in our application's web service layer which uses spring integration framework to work with different interfaces. I am actually stuck at the point where i am unable to figure out how to specify the hooks to indicate the start and end points for my transaction.

    The following is my message flow.

    Incoming request(the payload contains a list of objects) --> use splitter to break down the payload to act individually on each object --> process business logic on each of them --> drop a message to an external queue (per object that is obtained after splitting the incoming request)

    The point at which i want to start the transaction is just after i split the incoming request and end/commit my transaction after i submit/drop the message to the queue.

    Can anyone help me in how i can hook it up?

    Thanks in advance,