L.S., You have probably bumped into https://issues.apache.org/activemq/browse/SMXCOMP-471, which has been fixed by Guillaume just yesterday. Could you try with a recent SNAPSHOT or rebuild the components and smx4 features project yourself locally and give that a try?
Regards, Gert Vanthienen ------------------------ Open Source SOA: http://fusesource.com Blog: http://gertvanthienen.blogspot.com/ 2009/3/6 I am Noob <[email protected]>: > > 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. > >
