I found different samples and recommendations for different QueueConnectionFactory creations e.g.
QueueConnectionFactory qcf =
(QueueConnectionFactory) ctx.lookup("UIL2ConnectionFactory");
or
QueueConnectionFactory qcf =
(QueueConnectionFactory) ctx.lookup("jms/QueueConnectionFactory");
What are the differences ?
Is one the succesor of the other ?
Is one JBoss specific ?
The first one is a real jndi binding.
The second one does not exist in the default configuration.
You probably mean a resource-ref?
java:comp/env/jms/ConnectionFactory
and is upto you to define in ejb-jar.xml/jboss.xml