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

2014-02-12 Thread Timothy Bish
On 02/12/2014 12:43 AM, neosmrt wrote: 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-mess

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 Timothy Bish
On 02/11/2014 10:26 AM, neosmrt wrote: 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 Reci

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

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

2014-02-10 Thread artnaseef
Perhaps the message is not truly an "ActiveMQMapMessage"? Also, with the "catch (Exception ev) {}", is it possible the error is coming from another line of code? -- View this message in context: http://activemq.2283324.n4.nabble.com/strange-error-when-consume-message-from-queue-topic-tp4677680

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

2014-02-10 Thread cecchinoSMI
Have you considered to use an asyncronous receiver? Try to implement the asyncronous function onMessage(const Message*)...see the ActiveMq CMS documentation. -- View this message in context: http://activemq.2283324.n4.nabble.com/strange-error-when-consume-message-from-queue-topic-tp4677680p4677