I am new to the ActiveMQ-CPP, here below was the problem I used the example
from here - http://activemq.apache.org/cms/example.html.
I tested it using a simple code in below for producer. About right after the
producer finished reading, the customer code stops without finish, do
anybody know what I have done wrong ?
-------------Producer code to reading a file -------------------------
std::ifstream ifs("largefile.txt");
std::string line;
while (ifs) {
getline(ifs, line);
std::cout << "produce : " << line << "\n";
std::unique_ptr<TextMessage> message(session->createTextMessage(line));
producer->send(message.get());
}
Thanks.
--
View this message in context:
http://activemq.2283324.n4.nabble.com/Why-does-consumer-stop-receiving-message-using-ActiveMQ-cpp-example-tp4701292.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.