797836 wrote:The use case you are describing requires only one queue. If you are sending a message to a queue called "foo", then the consumer will receive it from "foo".
In JMS, why we need to create 2 Queues for SEND and RECEIVE in JNDI? Say I am sending a XML message to SEND QUEUE , when the consumer
retrieve the message he need to look in the SEND QUEUE right?
rather than the RECEIVE queue (which is empty)? If that is case why we need to 2This is just a guess, but are you perhaps configuring two separate objects in JNDI (with different JNDI names) which refer to the same queue in the JMS server? This isn't required but is possible.
queues to be configured in JMS server? Whether from SEND Queue the message will be transferred to RECEIVE queue to picked by
the consumer?Please clarify.