*
* Runs at about 2600 msg/sec on OS X G4 1.5ghz
*/
public void XtestMessageSerialization() throws Exception {
message.setReceiptRequired(false);
DefaultWireFormat wireFormat = new DefaultWireFormat();
long start = System.currentTimeMillis();
for (int i = 0; i < MESSAGE_COUNT; i++) {
message.setJMSMessageID("id:"+i);
PacketByteArrayOutputStream pos = new PacketByteArrayOutputStream();
DataOutputStream os = new DataOutputStream(pos);
os.writeByte(1);
os.writeUTF("Test");
wireFormat.writePacket(message, os);
os.close();
}
long end = System.currentTimeMillis();