Charles try without the forward slashes, like so "direct:supervisor"
On 08 Feb 2013, at 19:03, Charles Moulliard <ch0...@gmail.com> wrote: > Hi, > > Itry to use camel-cxf-transport but get a "No consumers available on > direct://supervisor". > > [msConsumer[supervisorworklist]] DirectProducer WARN No > consumers available on endpoint: Endpoint[direct://supervisor] to process: > Exchange[JmsMessage[JmsMessageID: > ID:RedHat-MacBook.local-57137-1360340917609-4:1:1:1:5]] > [msConsumer[supervisorworklist]] DefaultErrorHandler ERROR > Failed delivery for (MessageId: > ID:RedHat-MacBook.local-57137-1360340917609-4:1:1:1:5 on ExchangeId: > ID-RedHat-MacBook-local-57231-1360342216007-0-1). Exhausted after delivery > attempt: 1 caught: org.apache.camel.CamelExchangeException: No consumers > available on endpoint: Endpoint[direct://supervisor]. > Exchange[JmsMessage[JmsMessageID: > ID:RedHat-MacBook.local-57137-1360340917609-4:1:1:1:5]] > org.apache.camel.CamelExchangeException: No consumers available on > endpoint: Endpoint[direct://supervisor]. Exchange[JmsMessage[JmsMessageID: > ID:RedHat-MacBook.local-57137-1360340917609-4:1:1:1:5]] > at > org.apache.camel.component.direct.DirectProducer.process(DirectProducer.java:56)[camel-core-2.10.0.fuse-71-047.jar:2.10.0.fuse-71-047] > > Camel Spring > > <?xml version="1.0" encoding="UTF-8"?> > <beans xmlns="http://www.springframework.org/schema/beans" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xmlns:cxf="http://camel.apache.org/schema/cxf" > xmlns:camel="http://cxf.apache.org/transports/camel" > xsi:schemaLocation=" > http://www.springframework.org/schema/beans > http://www.springframework.org/schema/beans/spring-beans.xsd > http://camel.apache.org/schema/cxf > http://camel.apache.org/schema/cxf/camel-cxf.xsd > http://cxf.apache.org/transports/camel > http://cxf.apache.org/transports/camel.xsd > http://camel.apache.org/schema/spring > http://camel.apache.org/schema/spring/camel-spring.xsd"> > > <camel:destination name="{http://helloworld.atos.redhat.com > }SoapPort.camel-destination"> > <camelContext id="camel_destination" xmlns=" > http://camel.apache.org/schema/spring"> > > <route> > <from uri="activemq:queue:supervisorworklist"/> > <log message=">> SOAP Message received : ${body}"/> > <to uri="direct://supervisor"/> > <transform> > <constant> > Fred > </constant> > </transform> > <log message=">> Backend service replied"/> > </route> > > </camelContext> > </camel:destination> > > </camelContext> > </camel:destination> > > <!--<bean id="cxfToBackend" class="com.www.xxx.cxf.CXFtoBackend"/>--> > > <bean id="logginOutInterceptor" > class="org.apache.cxf.interceptor.LoggingOutInterceptor"/> > <bean id="logginInInterceptor" > class="org.apache.cxf.interceptor.LoggingInInterceptor"/> > > <!-- Producer Endpoint --> > <cxf:cxfEndpoint id="endpoint.service.worklist" > address="camel://direct://supervisor" > > serviceClass="com.redhat.atos.helloworld.HelloWorldService" > serviceName="s:HelloWorldService" > endpointName="s:HelloWorldOverJms" > xmlns:s="http://helloworld.xxx.www.com"> > <cxf:inInterceptors> > <ref bean="logginInInterceptor"/> > </cxf:inInterceptors> > > <cxf:outInterceptors> > <ref bean="logginOutInterceptor"/> > </cxf:outInterceptors> > </cxf:cxfEndpoint> > > </beans> > > Where is the issue ? > > Regards, > > -- > Charles Moulliard > Apache Committer / Sr. Enterprise Architect (RedHat) > Twitter : @cmoulliard | Blog : http://cmoulliard.blogspot.com