Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
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)