Thats because the path you have specified is incorrect. Try
to("jbi:endpoint:urn:com:my:service:custbean:authbeanservice:endpoint");

It will work.

Regards,
Ganesh



javadevel wrote:
> 
> I am trying to access a ServiceMix bean from Camel. Both SU’s are deployed
> on the same smx environment. However, my camel route generates an error
> when it tries to invoke the smx bean.
> 
> Your help is greatly appreciated
> 
> My SMX bean
> <?xml version="1.0" encoding="UTF-8"?>
> 
> <beans xmlns:bean="http://servicemix.apache.org/bean/1.0";
>        xmlns:custbean="urn:com:my:service:custbean">
> 
>   <bean:endpoint 
>       service="custbean:authbeanservice" 
>       endpoint="endpoint" 
>       bean="#myBean"/>
> 
>   <bean id="myBean" 
>       class="com.org.dept.MyBean"/>
> 
> </beans>
> 
> 
> My Camel Route
>       from("file://c:/work/test/poller2").
>               to("jbi:endpoint:urn:com:my:service:custbean:bean:endpoint");
> 
> The exception
> 
> ERROR - DeadLetterChannel              - On delivery attempt: 0 caught:
> org.apac
> he.servicemix.camel.JbiException: javax.jbi.messaging.MessagingException:
> Could
> not find route for exchange: InOnly[
>   id: ID:172.24.42.219-11a117da5f6-3:0
>   status: Active
>   role: provider
>   in: Unable to display: java.io.IOException: No input stream or reader
> availabl
> e
> ] for service: null and interface: null
> 
> 

-- 
View this message in context: 
http://www.nabble.com/invoking-smx-bean-from-camel-tp17409588p17421972.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to