I the following example I using 2 JMS queues in Glassfish 4.0. The first class sends a message to queue 1, this is picked up by a second bean which forwards the message to a next queue. From there it is picked up to the last bean. Schematically:
Creator -> jms/q1 -> QueueBean1 -> jms/q2 -> QueueBean2.
Problem is that QueueBean1 and QueueBean2 are receiving messages randomly from q1 and q2. It seems to me that q1 and q2 are just one queue and the MessageBeans a looking to that queue.