There is example code here in Java for multiple queues for one session(producer) https://stackoverflow.com/questions/43537444/activemq-producer-multiple-queues-one-session
Is there a way to do this for CPP? I've basically tried to replicate the functionality with AMQ CMS but when I use the send command and change the queue from "oldQueue" to "newQueue", I receive an error message: This producer can only send messages to "oldQueue"; virtual void cms::MessageProducer::send(const Destination *destination, Message * message ) basic code flow without actually typing in the code is: Create new Factory Set broker URI Create Connection Connection start Create Session Create Message Producer with a temp queue Create a new queue use session to create message Message Producer send using new queue and message; Appreciate any help, S~ -- Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html