maxMessageLength

Type: Integer

The maxMessageLength property of the JadeGenericQueue class contains the length of the longest message that can be put into this queue. An exception is raised if a call to the putMessage method attempts to put a message in the queue that exceeds this value.

Some transports include properties in addition to the body of the message when calculating the message length. You can disable the automatic segmentation of a message, by setting the value of the maxMessageLength property to the value returned by the getMaxSegmentLength method.

In the JadeMQ transport, the default value of the maxMessageLength property is 47M bytes, which is also the maximum value. In the WebSphere MQ transport, the default value of the maxMessageLength property is 50M bytes and the maximum value is 95M bytes.