On Mon, Sep 5, 2011 at 12:18 PM, ravi <[email protected]> wrote: > Hi, > I am trying to create a route: > > from(A:reader).process(convertToXml()).to(B:writer) > > Reader is reading message, processor transforming message to xml and writer > is writing xml message to some destination. > > I want the flow some what like: > > One message read -> Convert to XML -> Write to Destination > > Once above flow is completed then: > > Second message read -> Convert to XML -> Write to Destination > > So i want [from] to [to] should follow Synchronous approach, but the problem > is that reader component is not waiting for writer component. And it send > another message without waiting for a message is completely written to the > destination.
It really depends on how you consumer on A is implemented, whether it can support this. What kind of consumer are you using? And what version of Camel are you using? > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Synchronous-Routing-tp4769944p4769944.html > Sent from the Camel - Users mailing list archive at Nabble.com. > -- Claus Ibsen ----------------- FuseSource Email: [email protected] Web: http://fusesource.com Twitter: davsclaus, fusenews Blog: http://davsclaus.blogspot.com/ Author of Camel in Action: http://www.manning.com/ibsen/
