Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-2279

Current ConfigureImpl is not application refresh friendly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1.4, 2.1.5, 2.2.1, 2.2.2
    • 2.0.12, 2.1.6, 2.2.3
    • None
    • None

    Description

      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

      Attachments

        Activity

          People

            njiang Willem Jiang
            njiang Willem Jiang
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: