I have searched through all posts related to the subject. Yet I failed to find any help. Here is the consumer code, and its not able to receive messages as a durable subscriber. (It does receive messages when its connected to the Broker but not the onces that are sent when its not connected). I have seen people ask this exact question few times in the forum but NONE of them received any response regarding ActiveMQ-CPP durable subscriber not working. Anyone would like to be the first ?
many thanks auto_ptr<cms::ConnectionFactory> connectionFactory( cms::ConnectionFactory::createCMSConnectionFactory( brokerURI ) ); // Create a Connection connection = connectionFactory->createConnection(); connection->start(); // Create a Session session = connection->createSession( cms::Session::AUTO_ACKNOWLEDGE); cms::Topic* topic = session->createTopic("test.foo"); // Create a MessageConsumer from the Session to the Topic or Queue cms::MessageConsumer *consumer = session->createDurableConsumer(topic,"mytest","",false); cms::Message* cmsmsg = consumer->receive(); ////////////// -- View this message in context: http://old.nabble.com/ActiveMQ-CPP-Durable-Subscriber-Not-Working.-tp29029516p29029516.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.