Why do I get this message when I try to connect to a queue ?

Nicholas Whitehead

There are two reasons why this may happen:

  1. The queue is on another router and you try to create a receiver on your local router on that remote queue. That's not possible. You can only create receivers on queue which is located on the router where you are connected to.
  2. You use session.createQueue() and don't specify the router name qualifier: <queue>@<router>.