From Pavel Macik :
I have simple scenario using Camel routes.
A multicast route spreads the message to 2 other services (Service1 and Service2). Each service touches the message and send it to aggregator route that join the messages according to an aggregator stragtegy and send the result to Final service that touches the message and returns it.
The composite service has HTTP binding that return the results just after the Final service ends which is expected and desired behavior.
But instead of returning the Final service result the HTTP response contains the result of Service2.
Attached is reproducer...
Steps to reproduce:
1) build the reproducer:
$ mvn clean package
2) deploy the reproducer - copy the packaged jar into server's deployment directory
3) using HTTP client send a POST request to following url:
http://$
{server.host}
:$
{server.port}
/performance-camel-route-scatter-gather-java
Following issue happens:
- Expected HTTP response
"Body 1:
test[ScatterBean][Service1]
Body 2:
test[ScatterBean][Service2][FinalService]"
- Actual HTTP response:
"test[ScatterBean][Service2]"
A reproducible app is attached to the bugzilla.
|