This content has been marked as final. Show 2 replies
What happens when the code is run? Are any other logging messages printed? Did you try adding logging statements around the code to see which lines are being executed?
Also, if the message is not a TextMessage them a ClassCastException will be thrown and your catch block won't catch it because it is not a JMSException.