activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davis <>
Subject Re: STOMP queue names
Date Thu, 29 Apr 2010 23:05:30 GMT

Ok, now I figured out what I have to do.  Create the queue with whatever the
name is, but connect to the queue with the prefix "/queue/".

So, if I dynamically create a queue name "foobar", then I can pub/sub to it
just fine via openwire clients, but if I use a stomp client if I have to
specify it as "/queue/foobar".

I can see the code in

else if (name.startsWith("/queue/")) {
            String qName = name.substring("/queue/".length(),
            return ActiveMQDestination.createDestination(qName,

So, on the way in, it strips the extra /queue/ -- I'm guessing it needs the
goofy string prefix in order to determine the ActiveMQDestination.QUEUE_TYPE

davis wrote:
> Why must stomp queues be prefixed with the string "/queue/" ?

View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message