How do I use JMQ from a servlet?
I need to satisfy the following requirements. Please follow the sequence (I dont have Rational Rose with me! :-))
1.A end user sends a web request (for a servlet) through the browser.
2.Servlet sends a message to a backend process via JMS.
3.backend process does something and creates display data for the servlet.
4.backend process sends a message containing this data back to the servlet via JMS.
The stringent requirements are that step 2 and 4 have to be achieved using JMS. This is not negotiable! :-) Based on my limited knowledge of JMS, the way to achieve this is by
1.Having a Destination (Queue/Topic) for which the backend process is the consumer and all servlet instances are producers.
2.Or every request that the servlet receives, create a TemporaryQueue and send its name to the backend process through the message sent by the servlet. The servlet is the consumer of this queue and the backend process becomes the producer to send the display data to the servlet.
Is anybody knowledgable enough in JMS, to tell me if this is likely to fail? Or if there is a better solution?

