On Tue, 3 Nov 2015 11:08:29 -0800 (PST), JackOfAllTrades
<harrog...@yahoo.com> wrote:

>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.

The only thing I can see is that I would use the static member
function of the connection factory to create it.  I don't have much
time now but I may look into this later.


Reply via email to