Hi, Can you show us the code of the myProcessor? I just checked the code of camel-mqtt producer, it will to send the message to mqtt server unless the it can get the byte array from the message body. Please make sure the message body is reread able.
-- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) (English) http://jnn.iteye.com (http://jnn.javaeye.com/) (Chinese) Twitter: willemjiang Weibo: 姜宁willem On Tuesday, March 26, 2013 at 9:33 AM, arda.aydin wrote: > Hi everyone, > > I have a from(mqtt).to(mqtt) route but i can't get it work. Here are my > route definitions: > > <camel:route id="orderRequestCreatorRoute"> > <camel:from uri="mqtt:cheese?subscribeTopicName=CP/#"/> > <camel:process ref="myProcessor"/> > <camel:to uri="mqtt:cheese?publishTopicName=DP/Device1"/> > </camel:route> > > This doesn't work, the processor prints a log message but i can't consume on > DP/Device1 topic. But when i replace the consumer by a file endpoint it > works : > > <camel:route id="orderRequestCreatorRoute"> > <camel:from uri="file://inbox"/> > <camel:process ref="myProcessor"/> > <camel:to uri="mqtt:cheese?publishTopicName=DP/Device1"/> > </camel:route> > > Does someone has an idea about it? > Thanks in advance. > > Cheers, > Kod > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Problem-with-mqtt-component-tp5729820.html > Sent from the Camel - Users mailing list archive at Nabble.com > (http://Nabble.com).