File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB and other Java EE Technologies and the fly likes Sending a message to a dynamic queue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Sending a message to a dynamic queue" Watch "Sending a message to a dynamic queue" New topic
Author

Sending a message to a dynamic queue

Srinivas Nagesh
Greenhorn

Joined: Oct 27, 2002
Posts: 19
Hi,

I am trying to send a message to a dynamic queue. I am using MQ6 & JMS1.1. The messageproducer creates a temporary dynamic queue and requestMessage.getJMSReplyTo() gives me



My code to send the response is


The above piece of code works when i replace the temporary dynamic queue with a permanent static queue.

With temporary dynamic queue, i get the following error:



Any thoughts on the above problem?

Thanks

Srinivas
Srinivas Nagesh
Greenhorn

Joined: Oct 27, 2002
Posts: 19
I happened to solve this.

The problem was that i wasn't setting the delivery mode in the message producer to be Non_Persistent.



Thanks

Srinivas
[ April 08, 2008: Message edited by: Srinivas Nagesh ]
 
 
subject: Sending a message to a dynamic queue