Announcement Announcement Module
Collapse
No announcement yet.
Multi Transactional Spring integration Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Multi Transactional Spring integration

    Hi,

    Is there a way to have two transactions in a single spring integration flow?

    I have a case in which i have to read from a queue and post in different channels based on the type of order and till this should be in one transaction. From these channels there will be a separate API which will be invoked and that should be in a separate transaction.

    Thanks in advance.

  • #2
    Hi!
    and that should be in a separate transaction
    It's not a task of Spring Integration.
    It comes just from Transaction theory:
    Code:
    @Transactional(propagation = Propagation.REQUIRES_NEW)
    Is it what you are looking for?
    Artem

    Comment


    • #3
      I'm looking for some kind of a transaction manager in spring.

      Comment


      • #4
        The API Which i'm going to invoke may take long time but that should not affect the other transactions.
        Am I confusing?

        Comment


        • #5
          Am I confusing?
          Yep: http://static.springsource.org/sprin...tx-propagation
          http://static.springsource.org/sprin...l#REQUIRES_NEW

          Comment

          Working...
          X