See org.apache.activemq.command.ActiveMQDestination#getPhysicalName. On 20 January 2012 17:18, marks1900 <marks1900-u...@yahoo.com.au> wrote: > > > I want to remove the queue name prefix "activemq:queue:" that is used when > I send and receive messages via ActiveMq. > > So when I list the queue names in ActiveMq I want to see > "my_test_thirdparty" and not "activemq:queue:my_test_thirdparty". > > Below is my current code. > > ==================================== > > connnection = connectionFactory.createConnection(); > session = connnection.createSession( transacted, > Session.AUTO_ACKNOWLEDGE ); > > destination = new ActiveMQQueue( theQueueName ); > > MessageProducer producer = session.createProducer( destination > ); > ActiveMQTextMessage jmsMessage = new ActiveMQTextMessage(); > jmsMessage.setText( theMessage ); > > producer.send( jmsMessage ); > > ==================================== > > > -- > View this message in context: > http://activemq.2283324.n4.nabble.com/Remove-queue-prefix-activemq-queue-tp4313889p4313889.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com.
-- http://fusesource.com http://blog.garytully.com