Hi,
Have built the latest OpenWire dotNet client, and am trying to use it with
ActiveMQ 4.0.1. I can connect to the queue fine, but all my attempts to
block until a message has been received are failing. Using the simple test
code below:
ISession session = connection.CreateSession();
IDestination myqueue = session.GetQueue("TEST.FOO");
IMessageConsumer consumer = session.CreateConsumer(myqueue);
ActiveMQTextMessage message =
(ActiveMQTextMessage)consumer.Receive(new
System.TimeSpan(Timeout.Infinite));
I would expect this to block until a message is recevied on the queue -
unfortunately it doesn't, and just returns immediately, setting "message" to
null. Anyone have any thoughts?
Thanks,
David.
--
View this message in context:
http://www.nabble.com/OpenWire-dotNet-client---Receive%28%29-not-blocking-tf1854071.html#a5062327
Sent from the ActiveMQ - User forum at Nabble.com.