code: @Override
      public void writeBytes(byte[] value) throws JMSException {
          checkCanWrite();
          try {
              dataOut.write(value);
          } catch (IOException e) {
              throw convertExceptionToJMSException(e);
          }
      }
docs: Writes a byte array to the bytes
  message stream
  
  @param value
  The byte array value to be written
  @throws JMSException
  If the JMS provider fails to write the message due to some
  internal error.
  @throws MessageNotWriteableException
  If the message is in read-only mode.