{
method = new FailoverRoundRobinServers(connectionDetails);
}
else
{
method = new FailoverSingleServer(connectionDetails);
}
}
else
{
String failoverMethod = connectionDetails.getFailoverMethod();
/*
if (failoverMethod.equals(FailoverMethod.RANDOM))
{
//todo write a random connection Failover
}
*/
if (failoverMethod.equals(FailoverMethod.SINGLE_BROKER))
{
method = new FailoverSingleServer(connectionDetails);
}
else
{
if (failoverMethod.equals(FailoverMethod.ROUND_ROBIN))
{