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:

  1. request1 pressed request1 in channel 1
  2. thread1 responds to request1 with reference using subscriber1 Subscribed to
  3. Subscribed to membership for membership to subsciber2 with reference to response2 response2 2
  4. 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

Popular posts from this blog

sqlite3 - UPDATE a table from the SELECT of another one -

c# - Showing a SelectedItem's Property -

javascript - Render HTML after each iteration in loop -