App1 – will send message to q1 App2 – will send message to q2
App1 will put message to q1 and App1 will get message from q2
q1 and q2 belongs to same queue manager and they are local queues
i wanted to know that how do i ensure that, i am getting response for same request Kindly let me know how and where do i maintain Id’s for request and response.
please do provide Code snippet or links where i can relate.
Currently what i am doing is generating Id from request message and putting it in Correlation id field while sending message; after getting response i am again generating Id using same formula (which i have used for request message id) and comparing both correlated id's if they match then Response is for same Request.
I have to immediately show the response to user so if there are multiple users currently logged in to Request Application then how to ensure that responses will match as per request. (as after reading message from queue queue will remove the message and even if i store it in database how to provide immediate response
to user)
please do provide some knowledge on this