4 Replies Latest reply on Oct 9, 2012 1:29 PM by Clebert Suconic

    Concurrently using ClientRequestor.request

    Thomas Lo Newbie

      I just discovered if I use ClientRequestor.request concurrently I will have issue on receiving the response. This is the situation:


      1) use ClientRequestor.request to send in Request A and expect Response A

      2) before Response A comes back, use ClientRequestor.request (same instance in 1) to send in Request B and expect Response B


      If Request A takes longer time on the server side to generate Response A then Request B, then the client thread that issues Request A will receive Request B as response. Does that mean we cannot use ClientRequestor same instance concurrently? If not then what is the properly way to use hornetQ concurrently on the client side? Do we need to use multiple ClientRequestors then? Thanks