WebSphere Enterprise Service Bus for z/OS, Version 6.2.0 Operating Systems: z/OS


JMS data bindings

A Java™ Message Service data binding provides a mapping between the format used by an external JMS message and the Service Data Object (SDO) representation used by an Service Component Architecture (SCA) module.

There are two specialized predefined JMS data bindings: These data bindings take any data object and serialize it into the JMS message in a specific way. Text bindings require the message body to be a Business Object (BO) XML description of a message. An Object binding requires the message body to be a serialized Java Data Object.

There are six predefined JMS data bindings, supplied as Java classes, to support the JMS Message class and its five subtypes: These data bindings are general purpose and support any message body. For Text and Bytes messages, the bindings treat the payload as unstructured data and transfer it as a whole into the corresponding SDO.

In addition there is the JMSServiceGatewayDatabinding that can be used in conjunction with the Service Gateway interface. This data binding determines the type of the inbound JMS message and defers the processing to the corresponding JMS base data bindings above.

If the data is structured and you want to parse the data and map elements of it into a structure within an SDO, you must code your own JMS data bindings and SDO definitions. You also need to do this for an Object Message if you want to map elements of the Object, rather than the whole Object, into an SDO. A user-defined, custom JMS data binding can be used to both read and write JMS messages, and must implement the com.ibm.websphere.sca.jms.data.JMSDataBinding interface.


concept Concept topic

Terms of use | Feedback


Timestamp icon Last updated: 21 June 2010


http://publib.boulder.ibm.com/infocenter/dmndhelp/v6r2mx/topic//com.ibm.websphere.wesb620.zseries.doc/concepts/cwesb_jmscustombindings.html
Copyright IBM Corporation 2005, 2010. All Rights Reserved.
This information center is powered by Eclipse technology (http://www.eclipse.org).