Sun Java System Message Queue 4.3 Developer's Guide for C Clients

Message Body Types

JMS specifies six classes (or types) of messages. The C-API supports only three of these types, as described in Table 2–8. If a Message Queue C client expects to receive messages from a Message Queue Java client, it will be unable to process messages whose body types are other than those described in the table. It will also be unable to process messages that are compressed by the Message Queue Java client runtime.

Table 2–8 C-API Message Body Types

Type 

Description 

MQ_Text_Message

A message whose body contains an MQString string, for example an XML message.

MQ_Bytes_Message

A message whose body contains a stream of uninterpreted bytes.

MQ_Message

A message consisting of a header and (optional) properties, but no body.