Win a copy of Classic Computer Science Problems in Swift this week in the iOS forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

getJMSReplyTo()  RSS feed

 
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?/
 
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
 
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
 
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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!