Just tested this usecase and I can indeed recreate it with the Camel 2.14.1. Have you opened a Jira for this issue already if not I can create one with a test case showing the issue.
As a workaround you can add split the route into two with a seda queue between them. <camel:route> <camel:from uri="mqtt:foo?host=tcp://myhost:1883&subscribeTopicName=test/hello" /> <camel:to uri="seda:publishToTest" /> </came:route> <camel:route> <camel:from uri="seda:publishToTest" /> <camel:to uri="mqtt:bar?host=tcp:/myhost:1883&publishTopicName=test1/test" /> <camel:log message="Message processed" /> </camel:route> On Thu, Dec 11, 2014 at 7:19 AM, Jinesh M.K <mkjin...@gmail.com> wrote: > Hi, > > I have a spring DSL route definition > > <camel:route> > <camel:from > uri="mqtt:foo?host=tcp://myhost:1883&subscribeTopicName=test/hello" /> > <camel:to > uri="mqtt:bar?host=tcp:/myhost:1883&publishTopicName=test1/test" /> > <camel:log message="Message processed" /> > </camel:route> > > here message is consumed from test/hello topic and publishing is happen in > the same consumed topic (publishTopicName is ignored). How to solve it? > > Thanks > -- > > Jinesh M.K