First of all, thanks for your response. Second of all, sorry for the delay in posting the answers to your questions.
How do you know that your messages are not posted to the Queue?
-->The messages seem to be posted to the queue
Do you have a monitoring tool to see if there are messages in the queue?
-->I have the MQ series explorer
What output do you see in the server logs? Does your JVM (Server) terminate when you run your program(JSP)?
-->The statements which I print in the System.out are printed to the server log. The JVM doesn't terminate when I run the JSP.
I have one more question for you. Is it possible to write this queue sender and receiver in a
Java program. How do I call that program from a jsp page?
Thanks
Vidya