Hi,
First of all, I hope you have the JBI features for servicmix-bean installed
and available.
If so, there are two possibilities here. If you are using non-JBI packaging
based deployment (i,.e no SU's/SA's) do you import the following packages
org.apache.servicemix.bean
org.apache.servicemix.bean.pojos
org.apache.servicemix.beans.support
If you are using the traditional style, have you used the right dependency
in the pom file
<dependency>
<groupId>org.apache.servicemix</groupId>
<artifactId>servicemix-jms</artifactId>
<version>2008.01.0.3-fuse</version>
</dependency>
and deployed the artifact as
osgi install jbi:mvn:groupid/artifactId/version/zip
Hope this helps.
Cheers,
Ashwin...
I am Noob wrote:
>
> 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
>
-----
---
Ashwin Karpe, Principal Consultant, PS - Opensource Center of Competence
Progress Software Corporation
14 Oak Park Drive
Bedford, MA 01730
---
+1-972-304-9084 (Office)
+1-972-971-1700 (Mobile)
----
Blog: http://opensourceknowledge.blogspot.com/
--
View this message in context:
http://www.nabble.com/Unrecognized-JBI-endpoint-in-Camel-Context-tp22365092p22371699.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.