Hi,
I think you just need to set up route like this
from("direct:order").to("http:///...").to("direct:printOrder")
Or you need to set the MessageExchangePattern of the Exchange to be
InOut[1], if you don't want to change the route.
[1]http://camel.apache.org/request-reply.html
Willem
Tapdur wrote:
Hi all,
i have newbie question relative to EIP pattern, i don't see wich one
correspond to my pb.
(to simplify) :
i send an order to "direct:order"
from (direct:order")
.to(direct:generateOrder-id)
.to(direct:printOrder);
from(direct:generateOrder-id")
.to(http:///...)
from(direct:printOrder)
...
My issue is printOrder must be proceed after generation of the order-id BUT
the endpoint generateOrder-Id is an http request and put its result in the
out.setBody() and when i arrive in "direct:printOrder) i lost te initial
order.
The process i want is when i receive an order, i generate an order-id and
call the direct:printOrder with the initial order and the new order-id ?
any suggestion ?
Thx
Bruno