Hi,I run the simple test like the following :
https://svn.apache.org/repos/asf/activemq/activemq-dotnet/trunk/src/test/csharp/ActiveMQ/TestMain.cs
but I recieved nothing,So I changed like this:
// lets consume a message
IMessageConsumer consumer = session.CreateConsumer(destination);
consumer.Listener += new MessageListener(onMessage);
==========================================
public void onMessage(IMessage message)
{
Console.WriteLine("got here too ");
if (message == null)
{
Console.WriteLine("There is no message");
}
Console.WriteLine("got Message: " +
((ActiveMQTextMessage)message).Text);
}
I found that the onMessage function even didn't be transfered,it was so
weird,so could someone tell me why?thanks a lot!
--
View this message in context:
http://www.nabble.com/The-.NET-Client-recieve-no-message-tf4333722s2354.html#a12342618
Sent from the ActiveMQ - User mailing list archive at Nabble.com.