activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From marks1900 <marks1900-u...@yahoo.com.au>
Subject Remove queue prefix "activemq:queue:"
Date Fri, 20 Jan 2012 17:18:50 GMT


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.

Mime
View raw message