change osgi spring file for servicemix-camel according to the recent
servicemix-camel refactor(SMXCOMP-455Create JbiComponent per SU (camel context))
-----------------------------------------------------------------------------------------------------------------------------------------------------
Key: SMXCOMP-462
URL: https://issues.apache.org/activemq/browse/SMXCOMP-462
Project: ServiceMix Components
Issue Type: Bug
Components: servicemix-camel
Reporter: Freeman Fang
Assignee: Freeman Fang
Fix For: servicemix-camel-2009.01
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)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.