• Post Reply Bookmark Topic Watch Topic
  • New Topic

getJMSReplyTo()  RSS feed

 
Arjun Reddy
Ranch Hand
Posts: 629
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I am using Groovy for my JMS code and I am able to send a message to the queue and receive a message back. But now, the receiver is unable to send a message back to the queue coz it thinks no sender is waiting for a reply back coz getJMSReplyTo==null condition is being satisfied. Can someone tell me where this getJMSReplyTo() is set? On the senderside maybe?

Thanks.
 
Arjun Reddy
Ranch Hand
Posts: 629
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Anybody?/
 
Sim Kim
Ranch Hand
Posts: 268
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dont know about groovy but if you are asking about implementing request/reply model in JMS then maybe this will help :
Request Reply
 
Rory Marquis
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I am doing some JMS at the moment. Are you referring to when you create a temporary queue on the client side, and then pass it over in the message?

If so what you need to do is to call createTemporaryQueue(); on your session object. Then on your message you need to setJMSReplyTo(Destination); on your message with the temporary queue before you send it.

You also need to make sure that your Broker is set to allow temporary queues.

HTH
Rory
 
Arjun Reddy
Ranch Hand
Posts: 629
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks guys for replying
 
Robin Collier
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, the sender has to set the reply to destination. It can be any existing Queue or Topic. It does not have to be temporary.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!