Current ConfigureImpl is not application refresh friendly
---------------------------------------------------------

                 Key: CXF-2279
                 URL: https://issues.apache.org/jira/browse/CXF-2279
             Project: CXF
          Issue Type: Bug
    Affects Versions: 2.2.2, 2.2.1, 2.1.5, 2.1.4
            Reporter: Willem Jiang
            Assignee: Willem Jiang


When call the  ConfigurerImpl.addApplicationContext(ctx)  to add a new 
application context, we need to check if the ConfigureImpl's ApplicationContext 
is closed.
Since if we closed the application context which the ConfigureImpl has and add 
a new application context to it, we will  got the exception of "BeanFactory not 
initialized or already closed".

And this is a common use case in OSGi world, such as  refresh a OSGi Bundle 
with a camel-cxf route.

I workaround this issue by clean up  the BusFactory default factory[1] when the 
application context is closed, but we still need to fix this issue in CXF.

[1] https://issues.apache.org/activemq/browse/CAMEL-1696

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to