* validate the connection
* @param timeout
* @throws JMSException
*/
public void validateConnection(int timeout) throws JMSException {
KeepAlive packet = new KeepAlive();
packet.setReceiptRequired(true);
packet.setId(this.packetIdGenerator.getNextShortSequence());
// In most cases, if the transport is dead due to network errors
// the network error will be recognised immediately and an exception
// thrown. If the duplicate client ids are due to misconfiguration,
// we make sure that we do not terminate the "right" connection
// prematurely by using a long timeout here. If the existing client