You have to make sure you are carrying the MULE_CORRELATION_ID
message property through the exe
down to http://localhost:8082
otherwise the request-reply
message processor has no way to correlate the asynchronous reply with the current request.
For example, pass the correlation ID has a second argument to the exe
:
<expression-component doc:name="Expression">
Runtime.getRuntime().exec("C:\\myfile.exe arg1 " + message.correlationId);
</expression-component>
And make sure the exe
propagates the correlation ID towards http://localhost:8082
in an HTTP header named X-MULE_CORRELATION_ID
.