camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: FluentProducerTemplate.send() with ExhangePattern
Date Tue, 12 Dec 2017 17:03:02 GMT
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.balazs@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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message