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.
Questions tagged [apache-nms]
51 questions
5
votes
2 answers
.Net NMS.ActiveMQ should I store session and connection between message send calls
I just started with the ActiveMQ thing and got several questions.
I should send messages using ActiveMQ
What I did for now :
public class ActiveMQSender
{
private readonly Uri connectionUri;
private readonly IConnectionFactory…

v00d00
- 3,215
- 3
- 32
- 43
4
votes
2 answers
How can I programatically purge an ActiveMQ queue using the Apache.NMS API?
I need the ability to purge a queue programatically using Apache.NMS (C#). I've been looking through the NMS API, but see no such capability. Does it exist?

Kilhoffer
- 32,375
- 22
- 97
- 124
4
votes
3 answers
Does .Net core 2.0 supports Apache NMS Active MQ packages?
Warning NU1701 Package 'Apache.NMS 1.7.1' was restored using '.NETFramework,Version=v4.6.1' instead of the project target framework '.NETCoreApp,Version=v2.0'. This package may not be fully compatible with your project.

savan vasan
- 41
- 1
- 3
4
votes
1 answer
ActiveMQ NMS: connection.start() hangs with Failover protocol when broker is down
I have C# application using nms.activemq 1.5.0.
When my application starts it tries to connect to the broker using failover protocol (I have two brokers in master-slave configuration).
If both brokers down my application is stuck in wait because of…

GustavLatte
- 243
- 3
- 10
3
votes
2 answers
Type inference failing (CS0246) compiling from MSBuild 3.5 but not Visual Studio
We just hit an interesting error on our build server when compiling some recent changes from the command line:
c:\Windows\Microsoft.NET\Framework\v3.5\MSBuild.exe
error CS0246: The type or namespace name 'var' could not be found (are you missing a…

si618
- 16,580
- 12
- 67
- 84
3
votes
2 answers
MQ Error Reason: 2058 randomly starts occurring in C# .NET client after working correctly for multiple days
Client Details: The issues occurs with code acting as a producer pushing messages into IBM MQ queues and topics. The producer is exposed as a REST interface using WebApi2 and is deployed on IIS. We are using C# .NET (4.5.2) client to connect to IBM…

Kailash
- 527
- 4
- 13
3
votes
1 answer
How to get the underlying Stream handle from an Apache NMS ActiveMQ message
Background:
C# WPF application talking to JAVA server running on linux via ActiveMQ(Apache.NMS) / JSON(Newtonsoft.Json)
Problem:
JSON messages greater than 85000 bytes lead to LOH fragmentation
Possible solution:
Instead of reading the JSON as an…

Rookie
- 49
- 3
3
votes
1 answer
ActiveMQ connection start timeout in .NET
I have .Net client for ActiveMQ.
I'm using Apache.NMS 1.5.1.2739 and Apache.NMS.ActiveMQ 1.5.6.2746
I connect to the broker using the follow code:
var connectionFactory = new…

Pashec
- 23,199
- 3
- 26
- 26
2
votes
1 answer
Apache NMS - how to determine if connection is up
I'm having a hell of a time with some Apache NMS issues. Part of this may be my own lack of understanding of the platform.
In essence, I have an NMS STOMP client that I use to send and receive AMQ messages via STOMP. The API looks a bit like…

me--
- 1,978
- 1
- 22
- 42
2
votes
1 answer
ActiveMQ with C# and Apache NMS - Count messages in queue
I'm using ActiveMQ to send and receive messages using a C# app. However I'm having some difficulty just getting a count of the messages in the queue.. Here's my code:
public int GetMessageCount()
{
int messageCount = 0;
Uri…

finoutlook
- 2,523
- 5
- 29
- 43
2
votes
1 answer
Transferring large files with Apache NMS
What is currently considered state-of-art, so to speak, when transferring large files over Apache NMS (using ActiveMQ)? Putting the whole content into a StreamMessage? However, I've seen the naming here is a bit misleading as the file isn't actually…

Cristian
- 21
- 2
2
votes
2 answers
Apache NMS using ActiveMQ: How do I use transactional acknowledge mode but still acknowledging/rolling back a single message every time?
I use Apache NMS (in c#) to receive messages from ActiveMQ.
I want to be able to acknowledge every message I received, or roll back a message in case I had an error.
I solved the first part by using the…

Doron Saar
- 21
- 3
2
votes
1 answer
How to get count consumers in queue Apache.NMS
I'm using ActiveMQ to send and receive messages using a C# app. My queue name is
"ToServer". How to get count consumers? Thx.
var factory = new NMSConnectionFactory("activemq:tcp://" + _address + ":" +
_port);
_connection =…

Alex Bo.
- 21
- 2
2
votes
2 answers
Apache NMS on .NET fails to connect to ActiveMQ [Channel was inactive for too long]
I'm trying to subscribe to an ActiveMQ topic from a .NET application and here below is my code (I use Apache NMS 1.7.0):
using Apache.NMS;
using Apache.NMS.ActiveMQ;
...
public void Start()
{
try {
// connect to ActiveMQ
long…

j3d
- 9,492
- 22
- 88
- 172
2
votes
1 answer
C# Apache.NMS MessageListener OnMessage not firing
I have following code to connect to an ActiveMQ server.
The connection works,
the consumer is visible on the AMQ web interface,
there are messages on the queue
but the OnMessage is not executed.
I tried moving the start call but that doesn't…

carl verbiest
- 1,113
- 1
- 15
- 30