{
factory = new HornetQXAQueueConnectionFactory(false, discoveryAddress, discoveryPort);
}
else if (jmsFactoryType.equals(JMSFactoryType.TOPIC_XA_CF))
{
factory = new HornetQXATopicConnectionFactory(false, discoveryAddress, discoveryPort);
}
return factory;
}