{
factory = new HornetQTopicConnectionFactory(false, discoveryAddress, discoveryPort);
}
else if (jmsFactoryType.equals(JMSFactoryType.XA_CF))
{
factory = new HornetQXAConnectionFactory(false, discoveryAddress, discoveryPort);
}
else if (jmsFactoryType.equals(JMSFactoryType.QUEUE_XA_CF))
{
factory = new HornetQXAQueueConnectionFactory(false, discoveryAddress, discoveryPort);
}