You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by chandler <pe...@sandia.gov> on 2016/08/10 21:42:22 UTC
synchronous REST-WS and camel routes
I want to create a synchronous REST-WS that runs as set of camel routes and
finally returns the HTTP response (JSON). My current thinking is Camel Rest
component /to/ a camel request/reply jms component.The request is routed
several times (enriched/transformed). And finally the reply needs to be
returned. What I am thinking is: copy the header (replyTo) to each
hop/route. On the last route do NOT have a producer (to:) on the final
route. Camel will sent the message to the original replyTo? Is this crazy
talk? Is there an simpler was to do synchronous REST-WS and camel routes?
Any examples?
<http://camel.465427.n5.nabble.com/file/n5786285/EIPexample.jpg>
--
View this message in context: http://camel.465427.n5.nabble.com/synchronous-REST-WS-and-camel-routes-tp5786285.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: synchronous REST-WS and camel routes
Posted by chandler <pe...@sandia.gov>.
Thanks I will give it a try.
--
View this message in context: http://camel.465427.n5.nabble.com/synchronous-REST-WS-and-camel-routes-tp5786285p5786337.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: synchronous REST-WS and camel routes
Posted by DariusX <da...@gmail.com>.
I could be misunderstanding what you mean by "routed several times", but if
you're using inOut on the JMS queue, would you need a final to() ?
for instance:
from(rest)
transform()
to(jms ... inOut)
from(jms... InOut)
process()
--
View this message in context: http://camel.465427.n5.nabble.com/synchronous-REST-WS-and-camel-routes-tp5786285p5786328.html
Sent from the Camel - Users mailing list archive at Nabble.com.