Hi All, I have defined a bean endpoint in JBI environment. And here is the configuration:
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:bean="http://servicemix.apache.org/bean/1.0" xmlns:demo="http://www.test.com/demo" xmlns:xsi="http://http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://servicemix.apache.org/bean/1.0 http://servicemix.apache.org/schema/servicemix-bean-2008.01.xsd http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd"> <bean:endpoint service="demo:processorBeanService" endpoint="endpoint" bean="#processorBean" /> <bean id="processorBean" class="demo.processor.ProcessorBean" /> </beans> On deployment of the service assembly, I can see the actual endpoint via JMX. Now I have a OSGi bundle that simply routes message exchange from the above endpoint. <osgi:camelContext id="camelContext" xmlns="http://activemq.apache.org/camel/schema/osgi"> <camel-spring:route> <camel-spring:from uri="jbi:endpoint:http://www.test.com/demo/ProcessorBeanService/endpoint" /> <camel-spring:to uri="log:MyLogger" /> </camel-spring:route> </osgi:camelContext> On deployment of the bundle, however, I got NoSuchEndpointException. org.apache.camel.NoSuchEndpointException: No endpoint could be found for: jbi:endpoint:http://www.test.com/demo/ProcessorBeanService/endpoint, please check your classpath contains the needed camel component jar. at org.apache.camel.util.CamelContextHelper.getMandatoryEndpoint(CamelContextHelper.java:55) at org.apache.camel.model.RouteType.resolveEndpoint(RouteType.java:99) at org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:106) at org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:112) at org.apache.camel.model.FromType.resolveEndpoint(FromType.java:73) at org.apache.camel.impl.DefaultRouteContext.getEndpoint(DefaultRouteContext.java:81) ... (more) It seems that the OSGi bundle is not able to "see" the JBI endpoint because one is in OSGi container and the other is in JBI container. Is that any way to solve such a problem? By the way, I am using ServiceMix 4 and Camel 1.5. Regards, ServiceMix Noob -- View this message in context: http://www.nabble.com/Unrecognized-JBI-endpoint-in-Camel-Context-tp22365092p22365092.html Sent from the ServiceMix - User mailing list archive at Nabble.com.
