You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Charles Moulliard <cm...@gmail.com> on 2011/01/25 15:50:14 UTC
WebService + chaining of InOut
Hi,
Can we chain InOut camel routes like that ?
from(cxf:bean:realTime)
.to(bean:validate)
.inout(queue:in:realtime)
.to(bean:reply);
from(queue:in:realtime)
.to(bean:enrich)
.choice
.when(destination = A)
.to(bean:enrich)
.inOut(queue:in:generatePDF) // generate PDF that we would like to returrn
to WS RealTime
...;
Regards,
Charles Moulliard
--
View this message in context: http://camel.465427.n5.nabble.com/WebService-chaining-of-InOut-tp3356386p3356386.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: WebService + chaining of InOut
Posted by Claus Ibsen <cl...@gmail.com>.
Hi
Why dont you ask Camel and try it out :)
Yeah you can do request/reply over JMS.
So the client who invokes the cxf:bean:realTime web service, will wait
until the reply is send back,
which happens when that last step in the route is done (eg bean:reply).
On Tue, Jan 25, 2011 at 3:50 PM, Charles Moulliard <cm...@gmail.com> wrote:
>
> Hi,
>
> Can we chain InOut camel routes like that ?
>
> from(cxf:bean:realTime)
> .to(bean:validate)
> .inout(queue:in:realtime)
> .to(bean:reply);
>
> from(queue:in:realtime)
> .to(bean:enrich)
> .choice
> .when(destination = A)
> .to(bean:enrich)
> .inOut(queue:in:generatePDF) // generate PDF that we would like to returrn
> to WS RealTime
> ...;
>
> Regards,
>
> Charles Moulliard
> --
> View this message in context: http://camel.465427.n5.nabble.com/WebService-chaining-of-InOut-tp3356386p3356386.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
--
Claus Ibsen
-----------------
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/
AW: WebService + chaining of InOut
Posted by Christian Schneider <cs...@talend.com>.
Hi Charles,
to understand how the InOut pattern works I recommend reading:
http://camel.apache.org/request-reply.html
http://camel.apache.org/using-getin-or-getout-methods-on-exchange.html
Christian
-----Ursprüngliche Nachricht-----
Von: Charles Moulliard [mailto:cmoulliard@gmail.com]
Gesendet: Dienstag, 25. Januar 2011 15:50
An: users@camel.apache.org
Betreff: WebService + chaining of InOut
Hi,
Can we chain InOut camel routes like that ?
from(cxf:bean:realTime)
.to(bean:validate)
.inout(queue:in:realtime)
.to(bean:reply);
from(queue:in:realtime)
.to(bean:enrich)
.choice
.when(destination = A)
.to(bean:enrich)
.inOut(queue:in:generatePDF) // generate PDF that we would like to returrn to WS RealTime ...;
Regards,
Charles Moulliard
--
View this message in context: http://camel.465427.n5.nabble.com/WebService-chaining-of-InOut-tp3356386p3356386.html
Sent from the Camel - Users mailing list archive at Nabble.com.