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

TXFramework enlists with invalid url if @Path is used on a service request method

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Out of Date
    • Affects Version/s: None
    • Fix Version/s: 5.0.0.M5
    • Component/s: Compensations
    • Labels:
      None
    • Workaround:
      Workaround Exists
    • Workaround Description:
      Hide

      Omit the @Path annotation from service request methods.

      Show
      Omit the @Path annotation from service request methods.

      Description

      For this interface:

      @Path("/taxi")
      public interface TaxiServiceAT {
      
          @POST
          @Produces("text/plain")
          @Path("makeBooking")
          public Response makeBooking();
      }
      

      the following enlist url is created:

      http://localhost:8080/test/taxi/makeBooking0_ffffc0a80068_2a160422_4fe20541_179/28/terminate

      The addition of the '/makeBooking' fragment breaks the url pattern expected by the participant endpoint (@Path("

      {txid}

      /

      {pId}

      /terminate")) and messages from the coordinator are ignored.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                paul.robinson Paul Robinson
                Reporter:
                paul.robinson Paul Robinson
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: