chunk.writeBytes(buf, 0, length);
if (length < bufSize)
chunk.setBooleanProperty(XBConnectionMetaData.JMSX_GROUP_EOF, true);
chunk.setLongProperty(XBConnectionMetaData.JMSX_GROUP_SEQ, count);
chunk.reset();
producer.send(dest, chunk);
count++;
if (length < bufSize)
return;
}