Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP 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