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
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
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
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
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
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
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