MSGBODY

Determines whether a JMS application accesses the MQRFH2 of an IBM MQ message as part of the message payload.


Applicable Objects

Queue, Topic

JMS administration tool long name: WMQ_MESSAGE_BODY

JMS administration tool short name: MBODY


Programmatic access

Setters/getters

  • MQConnectionFactory.setMessageBodyStyle()
  • MQConnectionFactory.getMessageBodyStyle()


Values

    UNSPECIFIED
    When sending, IBM MQ classes for JMS does or does not generate and include an MQRFH2 header, depending on the value of WMQ_TARGET_CLIENT. When receiving, acts as value JMS.

    JMS
    When sending, IBM MQ classes for JMS automatically generates an MQRFH2 header and includes it in the IBM MQ message.

    When receiving, IBM MQ classes for JMS set the JMS message properties according to values in the MQRFH2 (if present); it does not present the MQRFH2 as part of the JMS message body.

    MQ
    When sending, IBM MQ classes for JMS does not generate an MQRFH2.

    When receiving, IBM MQ classes for JMS presents the MQRFH2 as part of the JMS message body.