What is the expected behavior from the EMS server when the client application throws a RuntimeException in the onMessage() method?

What is the expected behavior from the EMS server when the client application throws a RuntimeException in the onMessage() method?

book

Article ID: KB0073861

calendar_today

Updated On:

Products Versions
TIBCO Enterprise Message Service -
Not Applicable -

Description

The following is stated in the JMS 2.0 specification:

-------------------------------------------------------------

EMS allows a Message Consumer to consume messages either synchronously or asynchronously. For synchronous consumption, the Message Consumer explicitly calls a receive method on the topic or queue. For asynchronous consumption, you can implement a Message Listener that serves as an asynchronous event handler for messages.

A Message Listener implementation has one method, onMessage, that is called by the EMS server when a message arrives on a destination. You implement the onMessage method to perform the desired actions when a message arrives. Your implementation should handle all exceptions, and it should not throw any exceptions.

Issue/Introduction

What is the expected behavior from the EMS server when the client application throws a RuntimeException in the onMessage() method?

Environment

OS: all --------------------