camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Scott England-Sullivan <sully6...@gmail.com>
Subject Re: SJMS and InOut
Date Mon, 11 Feb 2013 16:56:56 GMT
After looking at it they don't appear to behave the same. The parameter sets the exchange pattern
at initialization while the inOut() method sets the exchange at runtime.

Is that what you would expect Claus?

Scott England-Sullivan
blog:sully6768.blogspot.com twitter:@sully6768

On Feb 9, 2013, at 9:51 PM, Claus Ibsen <claus.ibsen@gmail.com> wrote:

> On Sat, Feb 9, 2013 at 4:05 PM, Harald Wellmann <hwellmann.de@gmail.com> wrote:
>> I'm rather confused by the different flavours of InOut.
>> 
>> What's the difference between
>> 
>> 1) from("direct:calculatorProxy")
>>      .inOut("sjms:calculator-queue");
>> 
>> and
>> 
>> 2) from("direct:calculatorProxy")
>>      .to("sjms:calculator-queue?exchangePattern=InOut");
>> 
>> inOut() in 1) does not seem to make any difference from to() at all.
> 
> Its the same.
> 
> There is a couple of ways of doing this. See the request-reply eip pattern.
> http://camel.apache.org/request-reply.html
> 
> And when using Java code, you can also read the javadoc of the methods
> as well as they may also contains some information.
> 
> 
> 
> 
>> Best regards,
>> Harald
> 
> 
> 
> -- 
> Claus Ibsen
> -----------------
> Red Hat, Inc.
> FuseSource is now part of Red Hat
> Email: cibsen@redhat.com
> Web: http://fusesource.com
> Twitter: davsclaus
> Blog: http://davsclaus.com
> Author of Camel in Action: http://www.manning.com/ibsen

Mime
  • Unnamed multipart/alternative (inline, 7-Bit, 0 bytes)
View raw message