title: Getting response after posting a JMS message
body: <p>The following block of code is used to post a set of JMS messages to an EMS server</p>
  
  <pre><code>            for(int i=1;i&lt;=200;i++)
              {
  
                  msg=myMessages.get(i); // myMessages is an Arraylist of TextMessages
                  qsender = qsession.createSender((Queue)msg.getJMSDestination());
                  qreceiver=qsession.createReceiver((Queue)msg.getJMSDestination());
                  temp1 = qsession.createTemporaryQueue();
                  responseConsumer = qsession.createConsumer(temp1);
                  msg.setJMSReplyTo(temp1);
                  msg.setJMSCorrelationID(msg.getJMSCorrelationID()+i);
                  qsender.send(msg);
  
              }
  </code></pre>
  
  <p>Since this was not developed by me, I have some queries on it.</p>
  
  <ol>
  <li>What does the query actually do? Does it just post the messages without a response?</li>
  <li>If yes, how do we know when the response comes back and how do we calculate the time taken?</li>
  <li>And how do we calculate the total time the message takes to reach there and the response to come back?</li>
  </ol>
  
  <p>Please let me know if any more info is required.</p>