response = new CreateSessionResponseMessage(server.getVersion().getIncrementingVersion());
}
catch (HornetQException e)
{
HornetQServerLogger.LOGGER.failedToCreateSession(e);
response = new HornetQExceptionMessage(e);
if (e.getType() == HornetQExceptionType.INCOMPATIBLE_CLIENT_SERVER_VERSIONS);
{
incompatibleVersion = true;
}
}
catch (Exception e)
{
HornetQServerLogger.LOGGER.failedToCreateSession(e);
response = new HornetQExceptionMessage(new HornetQInternalErrorException());
}
// send the exception to the client and destroy
// the connection if the client and server versions
// are not compatible