Extended messaging - exception handling

Extended messaging provides the following exception handling for receiver beans and sender beans:

Error handling for receiver beans

The following error conditions can lead to extended messaging exceptions

Errors are always logged. If the application does not catch the exception, the default behavior is to roll back any active transaction. If the received message is rolled back, then it can be processed again. This can occur a number of times until the message causing the error is removed from the queue by the JMS provider. (For more information, see Dealing with retries in Transactional support with extended messaging.

With data mapping, if a receiver bean is deployed as a message-driven bean and a replyTo destination is configured, then error messages are sent as replies to that destination.

Application enterprise beans that call receiver beans deployed as session beans need to handle the CMMException exception. CMMException is an application exception which is declared in the throws clause of the methods in the generated receiver bean.

Error handling for sender beans

The following error conditions can lead to extended messaging exceptions

Errors are always logged. If the application does not catch the exception, the default behavior is to roll back any active transaction.

Application enterprise beans that call sender beans need to handle the CMMException exception, which is declared in the throws clause of the methods in the generated sender bean.


Related concepts
Extended messaging - receiving messages
Extended messaging - sending messages
Extended messaging - data mapping
Extended messaging - handling late responses
Extended messaging - application usage scenarios



Searchable topic ID:   cmc_ovw08
Last updated: Jun 21, 2007 8:07:48 PM CDT    WebSphere Business Integration Server Foundation, Version 5.0.2
http://publib.boulder.ibm.com/infocenter/wasinfo/index.jsp?topic=/com.ibm.wasee.doc/info/ee/cmm/concepts/cmc_ovw08.html

Library | Support | Terms of Use | Feedback