throws IOException
{
dos.writeLong(uid.longValue()); // UID write
dos.writeLong((uid.getConnectionUID() == null ? 0 :
uid.getConnectionUID().longValue()));
BrokerAddress brokeraddr= uid.getBrokerAddress();
if (brokeraddr == null) brokeraddr = Globals.getMyAddress();
if (brokeraddr == null) {
// XXX Revisit and cleanup : This method may be called
// before cluster initialization only during persistent
// store upgrade. i.e. from -
// FalconProtocol.upgradeConfigChangeRecord()
// At that time, Globals.getMyAddress() returns null.
// Hence this kludge...
try {
brokeraddr =
new com.sun.messaging.jmq.jmsserver.multibroker.fullyconnected.BrokerAddressImpl();
}
catch (Exception e) {}
}
brokeraddr.writeBrokerAddress(dos); // UID write
}