Willem Jiang created CXF-5505:
---------------------------------

             Summary: SpringBus should shutdown the bus when the application 
context is closed
                 Key: CXF-5505
                 URL: https://issues.apache.org/jira/browse/CXF-5505
             Project: CXF
          Issue Type: Bug
    Affects Versions: 2.6.11, 2.7.8, 3.0.0-milestone1
            Reporter: Willem Jiang
            Assignee: Willem Jiang
             Fix For: 3.0.0-milestone2, 2.6.12, 2.7.9


I was tracing a CXFBus leak issue recently. 

Here are the some details about the application bundle:  

There is a Spring application context holds a camel context which has a 
camel-cxf endpoint to receive the invocation from outside. When the application 
bundle is uninstalled from Karaf, the SpringBus doesn’t shutdown itself and 
CXFBusFactory doesn’t clean itself up. 

If the application bundle is changed to use Blueprint to load the same Camel 
context, we don’t find any Bus leak by dump the memory of the JVM. 

I dig the SpringBus code and found it registers an ApplicationListener which 
handles application context refresh and close event, but it doesn't shutdown 
the bus when it go the context close event.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to