Announcement Announcement Module
Collapse
No announcement yet.
Inbound-Gateway and spanning transactions Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Inbound-Gateway and spanning transactions

    Hi!

    I have difficulties configuring a "spanning" transaction, i.e. a transaction spanning over multiple services.
    Currently each service is transactional but it is not enough in some cases.

    Ex:
    Jms:InboundGateway -> ServiceActivatorA -> SerivceActivatorB
    An error in ServiceB should cause a rollback of the entire process and thereby undo serviceA work.

    I want the same functionality as the transactional element in a poller:
    Code:
    <si:poller cron="0 0 4 1 * ?">
        		
        		<si:transactional transaction-manager="txManager" 
                       isolation="DEFAULT"
                       propagation="REQUIRED" 
                       read-only="false" 
                       />
       	</si:poller>

    Any tips about how I can solve this issue?

  • #2
    Hello.
    Show your channels configuration, please
    poller work only on asynchronous channels.
    So, you must enclose your executiong thread in transaction.

    Artem

    Comment


    • #3
      See http://forum.springsource.org/showthread.php?109095

      Although that poster used a chain, the same technique will work in your case.

      Comment


      • #4
        Thank you, it works fine using a transactional gateway

        Comment

        Working...
        X