java - Channels for request-reply pattern using http-outbound-gateway -
I need to get feedback from the request and synchronous to use HTTP outbound gateway in a multi-threaded environment ( In the same thread) (Multiple Threads are the same)
I am thinking of using Direct Channel in the http-outbound-gateway as a request and feedback channel. If I do this, the following scenario comes:
- request1 pressed request1 in channel 1
- thread1 responds to request1 with reference using subscriber1 Subscribed to
- Subscribed to membership for membership to subsciber2 with reference to response2 response2 2
- response2 in context2 request2 subscriber1 Note: Received and processed by thread 2
Note: Request / Feedback channel Same for S threads.
If this happens then how to solve this problem, I need to always act on this reaction to the thread generated from the request.
No; It is completely safe; Thread 1 will get its response; Thread 2 will get its reaction; Can not have a cross-talk.
Comments
Post a Comment