Questions tagged [apache-nms]

Apache NMS is C# a Project that defines a JMS style API called NMS and implements clients for Messaging services such as ActiveMQ, and Tibco EMS.

51 questions
0
votes
1 answer

Why do ActiveMQ Consumers Recover to Pull Mode instead of Prefetch

I recently upgraded to NMS ActiveMQ 1.5.2 and when I restart the broker, the connection and the consumers get restored, but they get restored to the "pull" mode, which means the broker will not send them messages automatically. This isn't how the…
Jerico Sandhorn
  • 1,880
  • 1
  • 18
  • 24
0
votes
1 answer

Process messages concurrently in Apache.NMS.ActiveMQ

I am using Apache.NMS.ActiveMQ 1.7.2 in a .NET 7 project. Everything works fine. I consume the messages and pass it to my message processor. The logic like that if I send one, two, or more messages I consume the first and I pass it to the message…
0
votes
1 answer

When MQTT QoS1 message that does not have a consumer is physically removed from the ActiveMQ?

When a message (MQTT (3.1) QoS1) that does not have a client consuming the underlying topic is physically removed from the KahaDB ActiveMQ (5.15) database? Example 01: MQTT (3.1) message with content "foo" with QoS1 sent to the topic…
0
votes
1 answer

How to set up the MessageSelector in activeMq

I have a process that runs and polls for a message in an ActiveMQ. Now I have problems with setting up the message selector. The Queue is connected and pulls messages from the Queue, without selector. If I add an selector, it just breaks with a…
kurdy
  • 441
  • 4
  • 15
0
votes
1 answer

Reading 'old' messages from ActiveMQ virtual topic from C# (.net Core) with Apache.NMS

How do I read messages on a virtual topic with Apache.NMS? After creating the connection and session and consumer, I do: "consumer.Receive();". Messages sent while that code is running are received, but any messages that were already on the topic…
0
votes
1 answer

AMQ in .Net - Certificate or credentials

Should both Trust store/Key store and Certificate should be used to access AMQ Broker over SSL connection? If yes, how to achieve this? I find very less articles, blogs to do this for NMS. I am newbie.
Sukant
  • 11
  • 3
0
votes
1 answer

SocketException with AmazonMQ with .NET Core 2.2

I get a SocketException just trying to create a connection to AmazonMQ with the NMS ActiveMQ .net nuget package. Here is how I'm trying to connect: string url = "ssl://amazoninstance:61617"; string userName = "un"; string password = "pw; var…
0
votes
1 answer

Apache NMS Getting pending message count

I am trying to get the current number of messages on an activeMQ queue using c#. I have found this link (that is quite old now) ActiveMQ with C# and Apache NMS - Count messages in queue but enumerating the queue seems like a lot of work for this…
Nick Tucker
  • 323
  • 7
  • 14
0
votes
1 answer

ActiveMQ with C# and Apache NMS - Count consumers for a queue

I am trying to write a monitoring solution for ActiveMQ using C#. As part of that i need to monitor number of pending messages in a queue and number of consumers active for that queue. Can you please help me how to get number of consumers for a…
0
votes
1 answer

How do I get the JMS Header JMSMessageID from my message?

I want to substract the JMSMessageID Header from my message using apache nms. With the message.Properties[] I can only access my message Properties, how do I get the JMSMessageID? I tried the code below with no success. ITextMessage message =…
Hoi
  • 1
  • 1
0
votes
1 answer

Failover transport protocol can't handle consumercontrol messages

As part of AbortSlowConsumerStrategy, Active MQ sends down a command to close the consumer if it finds a consumer to be slow but on the consumer/client side, failover transport protocol implementation does not seem to handle this Consumercontrol…
Venkatesh Laguduva
  • 13,448
  • 6
  • 33
  • 45
0
votes
1 answer

Conenct to RabbitMQ using Apache NMS STOMP

I’m trying to read and write messages into/from a Rabbit MQ (3.6.5) queue using the STOMP protocol. I’m using Apache NMS Stomp (1.5.4) as client library. When sending a message using NMS I get the following exception: Input string was not in a…
musium
  • 2,942
  • 3
  • 34
  • 67
0
votes
1 answer

ActiveMQ - Do I need to re-subscribe to a queue after the Listener event fires?

I am integrating with an ActiveMQ JMS system using the Apache.NMS library. For the response queue listener, it's not clear whether the consumer is disposed after a message is received. Here are excerpts from the solution: var destination =…
reckface
  • 5,678
  • 4
  • 36
  • 62
0
votes
1 answer

Consumer service not dequeuing all messages from ActiveMQ queue

I have a windows service that is attempting to consume messages from some activemq queue's. However, it is only getting some of the messages and others are getting stuck in 'messages pending' in the queue. ActiveMQ tells me it has enqueued lets say…
Andrew G
  • 412
  • 1
  • 5
  • 14
0
votes
2 answers

How to send message to activemq payload as in the form of long(datatype)?

I am using .NET 3.5 to send message to active mq and i have a java listener which process these messages from the queue. Header contains userId - long type - string isAdd-bool Listener is expecting payload to be of datatype long. So i should send…
nimi
  • 5,359
  • 16
  • 58
  • 90