CxfConsumer's doStop() method just does server.stop() and not server.destroy():
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:
- Run the following command:
- Access hawtio Camel tab http://localhost:8080/hawtio/. Start and stop the route cxf-greeting several times.
- Go to hawtio JMX tab and check CXF endpoint MBeans are growing.