You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by yupub <yu...@126.com> on 2017/08/01 08:27:22 UTC

ActiveMQ CPP Comsumer CorrelationID

Hi:
    How can I receive message with CorrelationID In one MessageConsumer
Object many times:
    
string strFltr =  "CorrelationID='1111111111111111100A'" ;
ActiveMQConsumer* consumer =
(ActiveMQConsumer*)sess->CreateConsumer(consumer,strFltr);
msg = (TextMessage*)consumer->receive();   // Can receive message

strFltr =  "CorrelationID='1111111111111111100B'" ;
consumer->getConsumerInfo()->setSelector(strFltr);      // 
msg = (TextMessage*)consumer->receive();   // Can not receive message; Why
???. How Can I implement this case; Every times CreateConsumer performance
is lowwer




--
View this message in context: http://activemq.2283324.n4.nabble.com/ActiveMQ-CPP-Comsumer-CorrelationID-tp4729098.html
Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.