I am a new learnor of SI. Now I am writing a program to test some function of it. I stub client, mediator, two backend systems. Client sends a request to mediator, mediator would splitter it into two request messages and send to different b/e. b/e would send responses to mediator, mediator would aggregate the responses and send to client.
Now I would like to test error handling for sequential and parallel case. And I would make the thread of b/e (A) sleep 20 seconds(or more) to let the responses from it process a little long. On the other hand, some handling would be implemented, so even A return null resp, it is accepted.
Case 1.For sequential, the two reponses from b/e would be aggregated together and client can get the response,.even though b/e (A) return null response(this may due to timeout).
Case 2.But for parallel, although the responses can be aggregated, but not response can be returned to client.
I have no idea why case2 has not response while case1 has, Does anyone understand the cases?
Besides, I would like to know how I can set timeout value for ws-inbound-gateway…as like the cases above, if the response from A takes too long time, I don’t want client to wait for this response.
Thanks in advance.