Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-2297

MessageDrivenComponent startDelivery/stopDelivery is not thread safe

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 7.0.0.ER1
    • 7.0.0.ER1
    • EJB
    • None

    Description

      WFLY-4470 made a change to prevent MDBs being activated or deactivated multiple times, but it is not thread safe. A volatile boolean is used for the flag, but there is no protection against multiple threads invoking the methods simultaneously.

      Possible effects include:
      activating the endpoint twice, with (probably) only one deactivation later, leading to not de-registering XA resources from the recovery manager properly
      activate() and deactivate() running in the wrong order if done by separate threads

      Attachments

        Issue Links

          Activity

            People

              rhn-support-jlivings James Livingston (Inactive)
              rhn-support-jlivings James Livingston (Inactive)
              Ondrej Chaloupka Ondrej Chaloupka (Inactive)
              Ondrej Chaloupka Ondrej Chaloupka (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: