All I can do at the moment....


auto_ptr<ActiveMQConectionFactory> factory( new ActiveMQConectionFactory
(MY_BROKER_URL));

cms::Connection* conxn=null;
conxn=factory->CreatConnection();

auto_ptr<ActiveMQConection> myConn(dynamic_cast<ActiveMQConection*>(conxn));

myConn->start();

auto_ptr<Session> mySession;
mySession.reset(myConn->CreateSession(Session::AUTO_ACKNOWLEDGE));

auto_ptr<Destination> myDest;
myDest.reset(mySession->CreateQueue(MY_QUEUE_URI));

auto_ptr<Consumer> myConsumer;
myConsumer.reset(MySession->createConsumer(MyDest.get()));

myConsumer->receive(1000);
or
myConsumer->receiveNoWait();

This all worked just fine under 2.4.4.
all calls to receive now hang.....they just don't return.

auto_ptr<Queue_Connector> myConsumer;




--
View this message in context: 
http://activemq.2283324.n4.nabble.com/AMQ-CPP-Consumer-Receive-and-receiveNoWait-does-not-return-tp4703485p4703642.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Reply via email to