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

CXF serverFactoryBean should not use the thread default bus by default

    XMLWordPrintableJSON

Details

    • Unknown

    Description

      AbstractEndpointFactory.getBus() will try to call the BusFactory.getThreadDefaultBus() if the bus is null.
      But in the CXF ServerFactoryBean the bus wiring code is like this

           public void setApplicationContext(ApplicationContext ctx) throws BeansException {
                  if (getBus() == null) {
                      setBus(BusWiringBeanFactoryPostProcessor.addDefaultBus(ctx));
                  }
              }
      

      This behavior will cause some error as this mail thread[1] discussed

      [1]http://camel.465427.n5.nabble.com/cxf-rest-service-disappears-with-camel-2-8-0-td4666710.html

      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: