IBM BPM, V8.0.1, All platforms > Programming IBM BPM > Developing client applications for BPEL processes and tasks > Developing JMS client applications (deprecated)

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.

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 }

(Deprecated) Developing client applications using the Business Process Choreographer JMS API (deprecated)


Related concepts:
(Deprecated) Structure of a Business Process Choreographer JMS message (deprecated)