The following block of code is used to post a set of JMS messages to an EMS server

```
            for(int i=1;i<=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);

            }

```

Since this was not developed by me, I have some queries on it.

1. What does the query actually do? Does it just post the messages without a response?
2. If yes, how do we know when the response comes back and how do we calculate the time taken?
3. And how do we calculate the total time the message takes to reach there and the response to come back?

Please let me know if any more info is required.