XMS primitive types

XMS provides equivalents of the eight Java primitive types (byte, short, int, long, float, double, char, and boolean). This allows the interchange of messages between XMS and JMS without data becoming lost or corrupted.

Table 1 lists the Java equivalent data type, size, and minimum and maximum value of each XMS primitive type.

Table 1. XMS data types and their Java equivalents
XMS data type CompatibleJava data type Size Minimum value Maximum value
System.Boolean boolean 32 bits false true
System.SBYTE byte 8 bits -27 (-128 ) 27-1 (127)
System.BYTE byte 8 bits -27 (-128 ) 27-1 (127)
System.CHAR byte 8 bits -27 (-128 ) 27-1 (127)
System.Int16 short 16 bits -215 (-32768) 215-1 (32767)
System.Int32 int 32 bits -231 (-2147483648) 231-1 (2147483647)
System.Int64 long 64 bits -263 (-9223372036854775808) 263-1 (9223372036854775807)
System.Single float 32 bits -3.402823E-38 (to 7-digits precision) 3.402823E+38 (to 7-digits precision)
System.Double double 64 bits -1.79769313486231E-308 (to 15-digits precision) 1.79769313486231E+308 (to 15-digits precision)