3 Replies Latest reply on Jan 30, 2002 3:05 AM by pra

    ConnectionFactory vs QueueConnectionFactory

    keithk

      Hi:
      I was following the examples mentioned in the JBoss public manual, and noticed that examples for JBoss 2.4.1 or later look up for ConnectionFactory instead of QueueConnectionFactory. What is the rational behind for doing it.

      Thanks
      keith

        • 1. Re: ConnectionFactory vs QueueConnectionFactory

          Its the same object that implements both Topic and Queue stuff, you just typecast it to the type you want.

          //Peter

          • 2. Re: ConnectionFactory vs QueueConnectionFactory
            keithk

            But, is that breaking the specs? Or invalidate examples of the specs and books like Java Message Service by Richard Monson-Haefel & David A. Chappell?

            I still don't see the advance of using ConnectionFactory over TopicConnectionFactory and QueueConnectionFactory.

            Am I missing something?

            Thanks
            keith

            • 3. Re: ConnectionFactory vs QueueConnectionFactory

              If you read the spec, it says somethink like this: the name you use to lookup the connection factories is implementation and JMS provider specific. It's not in the spec.

              On the other hand, if I remember correctly, there are JNDI aliases for the old names, so they should work too.

              //Peter