Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-10914

CxfConsumer doesn't clean up the CXF endpoint MBean upon stop

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.18.2
    • Fix Version/s: 2.17.6, 2.18.3, 2.19.0
    • Component/s: camel-cxf
    • Labels:
      None

      Description

      CxfConsumer's doStop() method just does server.stop() and not server.destroy():

          protected void doStop() throws Exception {
              server.stop();
              super.doStop();
          }
      

      This leads to a growing number of dangling endpoint MBeans on CXF side which are never used.

      To reproduce the issue, extract the attached reproducer camel-cxf-hawtio.zip and do the following steps:

      1. Run the following command:
        $ mvn hawtio:camel
        
      2. Access hawtio Camel tab http://localhost:8080/hawtio/. Start and stop the route cxf-greeting several times.
      3. Go to hawtio JMX tab and check CXF endpoint MBeans are growing.

        Attachments

        1. camel-cxf-hawtio.zip
          5 kB
          Tadayoshi Sato

          Issue Links

            Activity

              People

              • Assignee:
                tadayosi Tadayoshi Sato
                Reporter:
                tadayosi Tadayoshi Sato
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: