Win a copy of Spring Boot in Practice this week in the Spring forum!
  • 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

JMS Server Restart

Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The JMS server is up and running, and my standalone Java application connects to two queues, a producer and consumer. My questions are how do I recover these connections when the JMS server goes down.

(1) For a producer, I get the JMSException thrown when trying to send. Do I need to close the current producer connection or just null it out?

(2) For a consumer, using an onMessage() listener, I am not informed of the lost JMS connection. What usual notification is done to inform the consumer, like a loop back message to the queue that isn't received and a timeout occurs in the consumer code, and do I close the lost the connection before creating a new one?

(3) Are these concerns covered in any other forums? I think they are realistic in that they will happen.

Thanks for your help.
    Bookmark Topic Watch Topic
  • New Topic