ConnectQosServer conQos = new ConnectQosServer(this.glob, receiver.getQos());
conQos.setAddressServer(getAddressServer());
ConnectReturnQosServer retQos = this.authenticate.connect(conQos);
//As we are a singleton there is no need to remember the secretSessionId of this client
receiver.setSecretSessionId(retQos.getSecretSessionId()); // executeResponse needs it
executeResponse(receiver, retQos.toXml(), SocketUrl.SOCKET_TCP);
}
else if (MethodName.DISCONNECT == receiver.getMethodName()) {
executeResponse(receiver, Constants.RET_OK, SocketUrl.SOCKET_TCP); // ACK the disconnect to the client and then proceed to the server core
// Note: the disconnect will call over the CbInfo our shutdown as well
// setting sessionId = null prevents that our shutdown calls disconnect() again.