• Post Reply Bookmark Topic Watch Topic
  • New Topic

Questions about JMS exception handling  RSS feed

 
jerry king
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am coding the exception handling in side the onMessage(Message message) of a Message driven bean. All exception will be catch in the onMessage(Message message). My question is there any possibility for exception occur before enter the onMessage method? Let say timeout occur during the message is being transfer from the jms to the onMessage method. How can i handle this kind of exception? Please kindly help, thank you.
 
Luciano A. Pozzo
Ranch Hand
Posts: 112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jerry,

The client (who is using the MessageProducer - QueueSender, TopicPublisher, etc) receives an JMSException if the JMS provider fails to send the message.
 
jerry king
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks !!
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!