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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.18.2
    • 2.17.6, 2.18.3, 2.19.0
    • camel-cxf
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: