Limitations appear when using the JMS BC with ActiveMQ 5.5.0.
The JMS BC works fine with dynamic queues.
But static queues seem to be impossible to use. It only works when the client, i.e. the JMS BC code, sets the right JNDI properties, that is to say...
queue.JndiQueueName = queue.physical.name
See http://activemq.apache.org/jndi-support.html
In fact, it seems that it is the JMS client that creates the JNDI and not AMQ itself.
It can also be checked on this JUnit test in AMQ. The best solution would be to allow a SU to provide a JNDI context. The BC creates the initial context from this file and overrides the properties. Obviously, this is a temporary workaround. A long term solution should avoid duplicating the JNDI values.
A workaround, for the moment, is to either use dynamic queues or to configure AMQ and Petals to use an external JNDI server.