- Correct use of Message.getRawBuffer() with Message.getOffset() and Message.getLength()
- Replaced incorrect msg.getBuffer() with msg.getOffset() and msg.getLength() with msg.getRawBuffer()
- Added position() to ExposedByteArrayOutputStream
- Replaced incorrect msg.getBuffer() with msg.getOffset() and msg.getLength() with msg.getRawBuffer()
- Message: write headers first, then payload (https://issues.jboss.org/browse/JGRP-1781)
- Message: added a readFromSkipPayload() method which skips the payload and returns the position at which the payload starts
- TP$MyHandler now skips reading of buffer into Message and instead refers to the copied byte buffer (https://issues.jboss.org/browse/JGRP-1773)