Something like this: f(string &queuename, string &text) { ... if (queueName Existing) // is it possible to check if a queue exists in the session??? destination = session->createQueue( queueName ); else // queue does not exist, something wrong return;
producer = session->createProducer( destination ); TextMessage* message = session->createTextMessage( textA ); producer->send(message); ... } -- View this message in context: http://activemq.2283324.n4.nabble.com/How-to-send-a-textMessage-to-an-exising-queue-destination-tp3481137p3483843.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.