Uploaded image for project: 'Spring Integration'
  1. Spring Integration
  2. INT-2770

JPA Outbound Gateways aren't advised with <transactional/> when they are advised with <request-handler-advice-chain>

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Complete
    • Affects Version/s: 2.2 RC1
    • Fix Version/s: 2.2 RC2
    • Component/s: JPA Support
    • Labels:

      Description

      For reproducing:

      <int-jpa:updating-outbound-gateway id="advised">
         <int-jpa:transactional/>
      <int-jpa:request-handler-advice-chain>
      			<bean class="org.springframework.integration.jpa.config.xml.JpaOutboundGatewayParserTests$FooAdvice" />
      		</int-jpa:request-handler-advice-chain>
      </int-jpa:updating-outbound-gateway>
      
      MessageHandler jpaOutboundGateway = context.getBean("advised.handler", MessageHandler.class);
      assertTrue(AopUtils.isAopProxy(jpaOutboundGateway));
      

      The real issue is here: AbstractJpaOutboundGatewayParser#parseHandler where the property for JPA adviceChain should be "txAdviceChain" instead of "adviceChain".
      Similar solution here: JpaOutboundChannelAdapterParser

        Attachments

          Activity

            People

            • Assignee:
              abilan Artem Bilan
              Reporter:
              abilan Artem Bilan
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 0.25d
                0.25d
                Remaining:
                Remaining Estimate - 0d
                0d
                Logged:
                Time Spent - 0.25d
                0.25d