This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of The Journey To Enterprise Agility and have Daryl Kulak & Hong Li on-line!
See this thread for details.
Win a copy of The Journey To Enterprise Agility this week in the Agile and Other Processes forum! And see the welcome thread for 20% off.
  • 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:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

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!