Re: strange error when consume message from queue/topic.

2014-02-12 Thread neosmrt
Yes. I tried that but still unable to get message. Here's the code I tried. using System; using System.Threading; using Apache.NMS; using Apache.NMS.Util; namespace Apache.NMS.ActiveMQ.Test { public class TestMain { protected static AutoResetEvent semaphore = new AutoResetEvent(fa

Re: strange error when consume message from queue/topic.

2014-02-11 Thread neosmrt
Tabish, I actually used *Recieve(TimeSpan.FromSeconds(10))* not /Recieve(TimeSpan.AddSeconds(10))/. It was a typo. But still unable to get the message. -- View this message in context: http://activemq.2283324.n4.nabble.com/strange-error-when-consume-message-from-queue-topic-tp4677680p4677846.ht

Re: strange error when consume message from queue/topic.

2014-02-11 Thread neosmrt
It is an ActiveMQMapMessage since my application was able to push message into queue, verified by Web Console. Error is coming from the same line, I verified it by debugging line by line and error was thrown when Recieve() method is called. I even tried RecieveNoWait() and Recieve(TimeSpan.AddSecon

strange error when consume message from queue/topic.

2014-02-10 Thread neosmrt
Need help for a strange issue I am facing when try to consume a message in ActiveMQ. I pushed a message in a queue. Then I created an application which acts as consumer of a message. In AciveMQ Web console I can see 1 message is Enqueued and in Pending Messages column. Then When I call consumer.Rec

strange error when consume message from queue/topic.

2014-02-10 Thread neosmrt
I am facing a strange issue. I pushed a message in a queue. Then I created an application which acts as consumer of a message. In AciveMQ Web console I can see 1 message is Enqueued and in Pending Messages column. Then When I call consumer.Recieve() an error is thrown. *Not a valid Win32 FileTime.