Re: ProducerTemplate.request() not returning complete Exchange

2020-02-20 Thread Alex Dettinger
xchange) { > >>>> exchange.getIn().setHeader(“test”,”foo”) > >>>> } > >>>> Route > >>>> From(jms:Sahara”) > >>>> .log(LoggingLevel.INFO,"* Test ID: ${header.test}" ) > >>>>

Re: ProducerTemplate.request() not returning complete Exchange

2020-02-19 Thread Marci Wilken
te: Hi Marci, to add on what Alex said, I found it's always better to use either getMessage() or to explicitly check if the exchange hasOut() instead of assuming getIn() is always the right place to look for data coming out of a component Giovanni -Messaggio originale- Da: Alex D

Re: ProducerTemplate.request() not returning complete Exchange

2020-02-17 Thread Alex Dettinger
f > assuming getIn() is always the right place to look for data coming out of a > component > > Giovanni > > -Messaggio originale- > Da: Alex Dettinger > Inviato: lunedì 17 febbraio 2020 11:04 > A: users@camel.apache.org > Oggetto: Re: ProducerTemplate.request()

R: ProducerTemplate.request() not returning complete Exchange

2020-02-17 Thread Giovanni Condello
inger Inviato: lunedì 17 febbraio 2020 11:04 A: users@camel.apache.org Oggetto: Re: ProducerTemplate.request() not returning complete Exchange Hi Marci, I would say that from("jms:Sahara")... has MEP InOUt so In message with header "foo", and OUT message with header "

Re: ProducerTemplate.request() not returning complete Exchange

2020-02-17 Thread Alex Dettinger
amel apache org website >> request*() methods >> >> The send*() methods use the default Message Exchange Pattern (InOnly, >> InOut etc) as the endpoint. If you want to explicitly perform a >> request/response (InOut) you can use the request*() methods instead of the

Re: ProducerTemplate.request() not returning complete Exchange

2020-02-17 Thread Alex Dettinger
citly perform a > request/response (InOut) you can use the request*() methods instead of the > send*() methods. > > E.g. let’s invoke an endpoint and get the response: > > > > >Camel › Camel - Users › Camel - Users > >kilidarria > > >Re: ProducerTemplate.requ

Re: ProducerTemplate.request() not returning complete Exchange

2020-02-14 Thread Marci
se (InOut) you can use the request*() methods instead of the send*() methods. E.g. let’s invoke an endpoint and get the response: >Camel › Camel - Users › Camel - Users >kilidarria >Re: ProducerTemplate.request() not returning complete Exchange. >‹ Previous Topic Nex

Re: ProducerTemplate.request() not returning complete Exchange.

2020-01-15 Thread Claus Ibsen
Hi The new Processor(){ } in the request method of the producer template is not for the reply message, but for preparing the message to send (eg the input message). On Tue, Jan 14, 2020 at 9:16 PM Wilken Marci J < marci.j.wil...@dhsoha.state.or.us> wrote: > Based on the documentation I was readi

ProducerTemplate.request() not returning complete Exchange.

2020-01-14 Thread Wilken Marci J
Based on the documentation I was reading the ProducerTemplate.request(, Processor) should return the Exchange information from the route that was called. When I am running my test on this it is returning the body information in the exchange.getOut().getBody() but the exchange.getOut().getHeade