activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davis <davisf...@gmail.com>
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
org.apache.activemq.transport.stomp.LegacyFrametranslator#convertDestination
=>

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

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: http://old.nabble.com/STOMP-queue-names-tp28406253p28406730.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Mime
View raw message