See the javadoc Send is in only Request is in out
Short mail as i type on ipad tir. 12. dec. 2017 kl. 17.22 skrev Balazs Szeti <szeti.bal...@gmail.com>: > Hi Camel Users, > > Is there a simple way to set the ExhangePattern with > FluentProducerTemplate? > > I tried to send an InOut exchange to a direct endpoint in a unit test, but > couldn't find a better way than building the Exchange object first and use > withExchange(). > > It would be nice to have something like ExchangeBuilder.withPattern(): > For example: > Exchange response = fluentproducerTemplate.to("direct:myendpoint") > .withHeader("mykey","myvalue") > *.withPattern(ExchangePattern.InOut)* > send(); > > or have something like send(ExchangePattern) as the ProducerTemplate > does... > > Any suggestions? > > Thanks, > Balazs Szeti > -- Claus Ibsen ----------------- http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2