activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mruan <ming.r...@ab-ovo.com>
Subject Re: How to send a textMessage to an exising queue (destination)
Date Fri, 29 Apr 2011 14:42:34 GMT
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.

Mime
View raw message