When clearBody is called on a BytesMessage, the body of the message is in write-only mode. If clearBody is called on a message in read-only mode, the message body is cleared and the message is in write-only mode.
See: