Uploaded image for project: 'JBoss Transaction Manager'
  1. JBoss Transaction Manager
  2. JBTM-3161

Nested LRA doesn't start in the Spring Boot + JAX-RS application

    XMLWordPrintable

Details

    • Feature Request
    • Status: Closed (View Workflow)
    • Critical
    • Resolution: Done
    • 5.9.8.Final
    • 5.10.1.Final
    • LRA
    • None

    Description

      For demonstrating purpose, I migrated flight service from narayana quickstart to the Spring Boot application and uploaded it to the attachment.

      When I stop debugger in the original swarm flight service (FlightParticipant line 64), the @HeaderParam(LRA_HTTP_CONTEXT_HEADER) String lraId, is new for that service. When I stop debugger in the SpringBoot+JAX-RS, the lraId is the same as for a parent. It looks that the ServerLRAFilter doesn't start the new LRA.

      I add a breakpoint to the ServerLRAFilter.filter(...) to see when the filter is applied and create new LRA before the JAX-RS method. When I call original swarm flight service, the filter is used however when I call SpringBoot flight service, the filter is not used so it looks that the filter is not used at all in the SpringBoot+JAX-RS application.

      Attachments

        1. flight_5.9.6.zip
          10 kB
        2. flight_5.9.8_working.zip
          9 kB
        3. flight_5.9.8.zip
          10 kB

        Issue Links

          Activity

            People

              rhn-engineering-mmusgrov Michael Musgrove
              mkralik@redhat.com Matej Kralik
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: