Interview Questions

How does two-way messaging with a SOAP and JMS implementation work?

SOAP Interview Questions and Answers


(Continued from previous question...)

How does two-way messaging with a SOAP and JMS implementation work?

Q: How does two-way messaging with a SOAP and JMS implementation work? Can it support multiple clients making simultaneous requests?

Before a client issues a two-way request, it creates a temporary JMS queue to receive the response. This temporary queue is specified as the replyTo destination that is in the outgoing JMS request message. After the server processes the request, it directs the response to the replyTo destination specified in the request message. The client deletes the temporary queue after the response is received. The server can handle simultaneous requests from multiple clients because each incoming request message contains the destination to which the reply is sent.

(Continued on next question...)

Other Interview Questions