Details
Description
When a BytesMessage (accessed via the IBytesMessage interface) is received, it is in write-only mode. The most likely thing that will be done with a received message is to read the contents of that message. Therefore, the message should be placed into read-only mode by default when it is received.