activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nydia <Darling6252...@yahoo.com.cn>
Subject Re: The .NET Client recieve no message
Date Tue, 28 Aug 2007 01:57:34 GMT

The problem had been resovled after I had changed the activemq from 5.0 to
4.1.1 Can't the V5.0 support the C# client?or I mistaken something?

Nydia wrote:
> 
> 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#a12360894
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Mime
View raw message