public void writeBytes(final byte[] value, final int offset, final int length) throws JMSException
{
if (!bodyWriteOnly)
{
throw new MessageNotWriteableException("The message body is readonly");
}
if (offset + length > value.length)
{
throw new JMSException("Array is too small");