Spring Integration
  1. Spring Integration
  2. INT-237

Problems with jmsGateway and JTA/Transactions

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.0 M4
    • Fix Version/s: 1.0 M5
    • Component/s: Adapters
    • Labels:
      None
    • Environment:
      custom test setup atomikos transaction JTA jdk1.5 mac

      Description

      See the following forum thread

      http://forum.springframework.org/showthread.php?t=55182

      Short Summary

      The jmsGateway xml schema configuration does not appear to be calling start or destory and therefore is not ever subscribing to the jms queue. A workaround is to create the jmsGateway with as a regular bean.

      JmsGateway class and jmsGateway xml schema configuration have no way to pass the jtaTransactionManager to the DefaultMessageListenerContainer to make the listening transactional

        Activity

        Hide
        Mark Fisher added a comment -

        The MessageBus now recognizes MessagingGateway implementations within the ApplicationContext, and if a gateway also implements Lifecycle (e.g. JmsGateway), that lifecycle can now be managed by the MessageBus.

        Also, JmsGateway now enables configuration of the 'transactionManager' to be set on the MessageListener container, and the <jms-gateway/> element now accepts a "transaction-manager" attribute for the bean reference.

        Show
        Mark Fisher added a comment - The MessageBus now recognizes MessagingGateway implementations within the ApplicationContext, and if a gateway also implements Lifecycle (e.g. JmsGateway), that lifecycle can now be managed by the MessageBus. Also, JmsGateway now enables configuration of the 'transactionManager' to be set on the MessageListener container, and the <jms-gateway/> element now accepts a "transaction-manager" attribute for the bean reference.

          People

          • Assignee:
            Mark Fisher
            Reporter:
            Chris Mercer
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - 2.5h
              2.5h
              Remaining:
              Remaining Estimate - 0d
              0d
              Logged:
              Time Spent - 2.5h
              2.5h