public int getCurrentWireFormatVersion() {
return AbstractDefaultWireFormat.WIRE_FORMAT_VERSION;
}
public Packet writePacket(Packet packet, DataOutput out) throws IOException, JMSException {
AbstractPacketMarshaller marshaller = getMarshaller(packet);
if (marshaller == null) {
throw new JMSException("No marshaller for packet type: " + packet.getPacketType() + " value: " + packet);
}
out.writeByte(marshaller.getPacketType());
marshaller.writePacket(packet, out);
return packet;
}