Data types for elements of application data

To ensure that an XMS application can exchange messages with a IBM MQ classes for JMS application, both the applications must be able to interpret the application data in the body of a message in the same way.

For this reason, each element of application data written in the body of a message by an XMS application must have one of the data types listed in Table 1. For each data type, the table shows the compatible Java data type. XMS provides the methods to write elements of application data only with these data types.

XMS Data type Represents Compatible Java data type
System.Boolean The boolean value true or false boolean
System.Char16 Double byte character char
System.SByte Signed 8-bit integer byte
System.Int16 Signed 16-bit integer short
System.Int32 Signed 32-bit integer int
System.Int64 Signed 64-bit integer long
System.Float Signed floating point number float
System.Double Signed double precision floating point number double
System.String String of characters String

For information about the size, maximum value and minimum value of each of these data types, see XMS primitive types.

Parent topic: The body of an XMS message