Questions tagged [nms]

Apache.NMS provides a rich .NET messaging API similar to JMS. The NMS project provides a client for Apache ActiveMQ the most popular and powerful open source message broker along with several others

Apache.NMS is a .NET API that provides a JMS like API for .NET messaging clients. The Apache.NMS project has several implementations of the NMS API available including one for ActiveMQ2 that provides many of the same advanced features as ActiveMQ's Java client library including connection failover support, SSL connectivity, Async sends, flow control and Message compression. Other NMS client libraries include Stomp, MSMQ, Tibco EMS and WCF.

125 questions
0
votes
1 answer

ActiveMQ - When to close session?

I'm migrating my Java application to .NET Core. In Java I was using Spring Boot and didn't care much about handling the opening and closing of sessions / consumers / etc (don't know if I should though n_n'). Migrating to .NET I'm having to do more…
João Menighin
  • 3,083
  • 6
  • 38
  • 80
0
votes
1 answer

ActiveMQ(NMS) : Is there a way to run a query on the queue to find out all messages with certain header values?

I am using ActiveMQ to store messages to be used later. It is working as expected, but there is a specific scenario I need to fit which I cannot figure out. The short question is this. Is there a way to run a query on the queue to find out all…
Som Bhattacharyya
  • 3,972
  • 35
  • 54
0
votes
1 answer

Apache.NMS.ActiveMQ client hang when connection has been broken

Our client connects to cluster with 2 ActiveMQ nodes. Apache.NMS.ActiveMQ library hang when we drop network connection manually between client and cluster. We use Apache.NMS.ActiveMQ with version 1.7.2 and cluster based on ActiveMQ…
0
votes
1 answer

Connection closes after few seconds when connecting to ActiveMQ set up on AWS

I am connecting to Apache Active MQ which is hosted on AWS to integrate my app to a custom service. I need to keep this running always, not one time like it's right now. The code below works, but only for one message, I need to maintain the…
Mubashir Koul
  • 171
  • 1
  • 14
0
votes
1 answer

Is it possbile to have multiple instances of the service with the same clientId in ActiveMQ?

I've created a test with two consumers each using its own connection. I need to be sure that only one of them receives the message. These consumers use the same clientId and name. Whenever I set clientId for the second consumer I get the following…
Pavel Voronin
  • 13,503
  • 7
  • 71
  • 137
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

NMS ActiveMQ Ignores Prefetch Limit set in Code

I'm using the current Apache.NMS 1.7.1 and Apache.NMS.ActiveMQ 1.7.2. I'm using IndividualAcknowledge, so I'm trying to keep the number of loaded messages quite low, because it get's really slow if I have >>1000 messages loaded without Acking them…
Juri Robl
  • 5,614
  • 2
  • 29
  • 46
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

Looking for the class of an Iterable to create a constructor using reflection

Good day, I've got a question regarding reflection in Java. I want to instanciate a constructor for a class PacketPlayOutPlayerInfo using the following constructor: public PacketPlayOutPlayerInfo(PacketPlayOutPlayerInfo.EnumPlayerInfoAction…
babrs
  • 74
  • 8
0
votes
1 answer

Failed to extract body due to: javax.jms.JMSException: Failed to build body from byte(Failed to extract sent Zip file to ActiveMQ)

I am trying to send message to ActiveMQ server with my client app written on C# .NET. I have XML messages which I have converted into Zip stream and trying to send. public IMessage SendMessage(string mqUri, string brokerUri, MemoryStream message,…
Aasish
  • 377
  • 5
  • 18
0
votes
1 answer

Is there a way to set the maximum number of message redeliveries in ActiveMQ when using the Apache.NMS libraries?

I'm using Apache.NMS 1.4. I need to be able to programmatically set the maximum number of times a message can be delivered before being placed in the DLQ (Dead Letter Queue). Is there a way to do it?
Kilhoffer
  • 32,375
  • 22
  • 97
  • 124
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

How does WCF turn a ServiceContract/OperationContract into a Message that can be serialized?

I'm starting to experiment with using ActiveMQ (in conjunction with the ActiveMQ.NMS bindings) to support some cross platform RPC messaging that we're looking at doing. As part of this I'd like to be able to define our RPC contracts in the manner…
Kieran Benton
  • 8,739
  • 12
  • 53
  • 77
0
votes
1 answer

How to maintain ActiveMQ connection open?

I'm using Apache ActiveMQ to integrate my app to a custom service. I need to make this run always, not one time like it's right now. The code below works, but only for one message, I need to maintain the connection active in order to receive all…
eestein
  • 4,914
  • 8
  • 54
  • 93
0
votes
0 answers

ActiveMQ Queued Messages Not Dispatching to Consumer

I have a .NET application that uses Apache.NMS to communicate with an ActiveMQ 5.11 server. I noticed via the ActiveMQ console that there were 15k messages pending. What was odd about this was there was, in fact, a consumer on the queue and it was…
Ternary
  • 2,401
  • 3
  • 31
  • 54
1 2 3
8 9