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