protected Message createMessage(byte i, boolean reliable) throws Exception
{
HashMap coreHeaders = generateFilledMap(true);
JBossBytesMessage m =
new JBossBytesMessage(i,
reliable,
System.currentTimeMillis() + 1000 * 60 * 60,
System.currentTimeMillis(),
i,
coreHeaders,
null);
setDestination(m, i);
setReplyTo(m, i);
m.setJMSType("testType");
setCorrelationID(m, i);
m.writeBoolean(randBool().booleanValue());
m.writeByte(randByte().byteValue());
m.writeBytes(randByteArray(500));
m.writeChar(randChar().charValue());
m.writeDouble(randDouble().doubleValue());
m.writeFloat(randFloat().floatValue());
m.writeInt(randInt().intValue());
m.writeLong(randLong().longValue());
m.writeShort(randShort().shortValue());
m.writeUTF(randString(1000));
return m;
}