Hi,
Thanks for the quick response.

request() returns the body Object, but having a second look at the source I
see that this works:
.request(Exchange.class) returns the whole Exchange.

Thanks,
Balazs



On Tue, Dec 12, 2017 at 12:03 PM, Claus Ibsen <claus.ib...@gmail.com> wrote:

> 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
>

Reply via email to