This topic applies only to the IBM Business Automation Workflow Advanced
configuration.

Checking the response message for business exceptions in JMS client applications (deprecated)

Draft comment:
This topic only applies to BAW, and is located in the BAW repository. Last updated on 2025-03-13 12:15
JMS client applications must check the message header of all response messages for business exceptions.

About this task

Attention: The Business Process Choreographer JMS API is deprecated. To develop JMS-based client applications, use the Business Process Choreographer web services API with the SOAP/JMS transport protocol.
A JMS client application must first check the IsBusinessException property in the response message header.

For example:

Example

// receive response message
Message receivedMessage = ((JmsProxy) getToBeInvokedUponObject().receiveMessage();
String strResponse = ((TextMessage) receivedMessage).getText();
	
if (receivedMessage.getStringProperty("IsBusinessException") {
		// strResponse is a bussiness fault 
		// any api can end w/a processFaultMsg 
		// the call api also w/a businessFaultMsg
	}
else {
		// strResponse is the output message 
}