Its the same object that implements both Topic and Queue stuff, you just typecast it to the type you want.
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?
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.