• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

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.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!