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

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 
}