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
posted 8 years ago
The client (who is using the MessageProducer - QueueSender, TopicPublisher, etc) receives an JMSException if the JMS provider fails to send the message.