Hi, yes, this is documented here http://activemq.apache.org/stomp.html#Stomp-WorkingwithDestinationswithStomp
<http://activemq.apache.org/stomp.html#Stomp-WorkingwithDestinationswithStomp>While you're in the source code, you might want to check to StompTest.java for more examples on how to use it. Cheers -- Dejan Bosanac - http://twitter.com/dejanb Open Source Integration - http://fusesource.com/ ActiveMQ in Action - http://www.manning.com/snyder/ Blog - http://www.nighttale.net On Fri, Apr 30, 2010 at 1:05 AM, davis <[email protected]> wrote: > > 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. > >
