3 Replies Latest reply on Dec 3, 2011 11:50 AM by Clebert Suconic

    Hornetq 2.2.5 HornetQJMSClient migration from 2.1.2

    John Muhlestein Newbie

      I'm migrating form 2.1.2 to 2.2.5 and previously:

       

      HornetQConnectionFactory cf = HornetQJMSClient.createConnectionFactory(TransportConfiguration tc);

       

      worked just fine.  In 2.2.5

       

      HornetQConnectionFactory cf = HornetQJMSClient.createConnectionFactoryWithoutHA(JMSFactoryType.CF,TransportConfiguration);

       

      seems to be the appropriate replcacement, except, HornetQConnectionFactory no longer implements javax.jms.ConnectionFactory

       

      My questions are:

        can I reliably count on HornetQJMSClient.createConnectionFactoryWithoutHA(type,config) to return a HornetQJMSConnectionFactory (which does implement javax.jms.ConnectionFactory) as the underlying implementation?

       

      and more importantly, shouldn't HornetQJMSClient.createConnectionFactoryXxx() signature actually return a HornetQJMSConnectionFactory instead of HornetQConnectionFactory?

       

      John