Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JMS Consumer ends even after implementing MessageListener interface.

 
Jigar Naik
Ranch Hand
Posts: 762
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have written below consumer which implements MessageListener interface. when i run this program as java application my program ends without throwing any exception. The program should be continuously running right ? as i have implemented MessageListener interface so that whenever message comes in onMessage(Message message) method will get called.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic