Uploaded image for project: 'ServiceMix Components'
  1. ServiceMix Components
  2. SMXCOMP-462

change osgi spring file for servicemix-camel according to the recent servicemix-camel refactor(SMXCOMP-455Create JbiComponent per SU (camel context))

    XMLWordPrintableJSON

Details

    Description

      since changes for SMXCOMP-455, it create JbiComponent per SU, so that each SU have different camel-context.
      now CamelJbiComponent is not org.apache.camel.Component any more,
      see the changes
      -public class CamelJbiComponent extends DefaultComponent implements Component<Exchange> {
      +public class CamelJbiComponent extends DefaultComponent {
      so we need update servicemix-camel.xml to accomadate this changes also, otherwise we get exception when start servicemix-camel features in SMX4 container
      Feb 23, 2009 7:07:58 PM org.apache.cxf.bus.spring.BusApplicationContext getConfigResources
      INFO: No cxf.xml configuration file detected, relying on defaults.
      Exception in thread "SpringOsgiExtenderThread-38" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.osgi.service.exporter.support.OsgiServiceFactoryBean#0': Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Exported service object does not implement the given interface: class org.apache.servicemix.camel.osgi.CamelComponentFactoryBean$OsgiCamelJbiComponent is not assignable to interface org.apache.camel.Component
      at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1338)

      Attachments

        Activity

          People

            ffang Freeman Yue Fang
            ffang Freeman Yue Fang
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: