I'm having problems with the loopDoWhile pattern in my camel route. Note that without the loopDoWhile the route works fine and returns a set of items to the "classe 1" route.
classe 1 :
from(LISTE_URI)
.process(listRequestProcessor)
.to("direct:netty4-tcp-route")
.process(listResponseProcessor);
classe 2 :
from("direct:netty4-tcp-route")
.loopDoWhile(exchangeProperty("endOfList").isNotEqualTo("true"))
.marshal(myDataFormat)
.to(netty4URI)
.unmarshal(myDataFormat);
The server I'm calling returns a partial list of items and a "endOfList" set to true or false depending on there are more items to fetch. I then need to recall the server until endOfList is true.
With the "loopDoWhile" pattern I'm looping and my final list is growing as expected BUT the list is not returned to the classe 1 route at the end of the looping. No response from the classe 2 route (while I have one without looping).