HornetQServerLogger.LOGGER.incompatibleVersionAfterConnect(request.getVersion(), connection.getClientVersion());
}
Channel channel = connection.getChannel(request.getSessionChannelID(), request.getWindowSize());
HornetQPrincipal hornetQPrincipal = null;
if (request.getUsername() == null)
{
hornetQPrincipal = connection.getDefaultHornetQPrincipal();
}
ServerSession session = server.createSession(request.getName(),
hornetQPrincipal == null ? request.getUsername() : hornetQPrincipal.getUserName(),
hornetQPrincipal == null ? request.getPassword() : hornetQPrincipal.getPassword(),
request.getMinLargeMessageSize(),
connection,
request.isAutoCommitSends(),
request.isAutoCommitAcks(),
request.isPreAcknowledge(),