Hello all why wont this work Camel-su <?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:bean="http://servicemix.apache.org/bean/1.0" xmlns:test="http://barnes/test"> <bean:endpoint service="test:beanService" endpoint="beanPoint" bean="#myBean"/> <bean id="myBean" class="barnes.test.MyBean"/> </beans> public void configure() { from("timer://tutorial?fixedRate=true&delay=3000&period=10000") .setBody(constant("<message>Hello world!</message>")) .to("jbi:endpoint:http://barnes/test/jms/provider"); } jms-su <?xml version="1.0" encoding="UTF-8"?> <beans xmlns:jms="http://servicemix.apache.org/jms/1.0" xmlns:test="http://barnes/test" xmlns:amq="http://activemq.org/config/1.0"> <jms:provider service="test:jms" endpoint="provider" destinationName="test.queue" connectionFactory="#connectionFactory"/> <jms:consumer service="test:jms" endpoint="consumer" destinationName="test.queue" connectionFactory="#connectionFactory" marshaler="#marshaler" targetService="test:beanService" targetEndpoint="beanPoint" /> <bean id="marshaler" class="org.apache.servicemix.jms.endpoints.DefaultConsumerMarshaler"> <property name="mep" value="http://www.w3.org/2004/08/wsdl/in-out" /> </bean> <amq:connectionFactory id="connectionFactory" brokerURL="tcp://localhost:61616" /> </beans> bean-su <?xml version="1.0" encoding="UTF-8"?> <beans xmlns:jms="http://servicemix.apache.org/jms/1.0" xmlns:test="http://barnes/test" xmlns:amq="http://activemq.org/config/1.0"> <jms:provider service="test:jms" endpoint="provider" destinationName="test.queue" connectionFactory="#connectionFactory"/> <jms:consumer service="test:jms" endpoint="consumer" destinationName="test.queue" connectionFactory="#connectionFactory" marshaler="#marshaler" targetService="test:beanService" targetEndpoint="beanPoint" /> <bean id="marshaler" class="org.apache.servicemix.jms.endpoints.DefaultConsumerMarshaler"> <property name="mep" value="http://www.w3.org/2004/08/wsdl/in-out" /> </bean> <amq:connectionFactory id="connectionFactory" brokerURL="tcp://localhost:61616" /> </beans> @Resource private DeliveryChannel channel; public void onMessageExchange(MessageExchange exchange) throws MessagingException { System.out.println("WLRI"); exchange.setStatus(ExchangeStatus.ACTIVE); channel.send(exchange); } All i want is to have a bean intercept the message and output something. So the xml string goes to the jms queue and a listener outputs a message thats it. Thanks in advance -- View this message in context: http://www.nabble.com/Servicemix-Bean-camel-jms-little-help-tp25257646p25257646.html Sent from the ServiceMix - User mailing list archive at Nabble.com.
