Questions tagged [activemq-cpp]

Apache ActiveMQ-CPP provides a rich C++ client for Apache ActiveMQ the most popular and powerful open source message broker

Apache ActiveMQ-CPP is a fast, feature rich C++ client for Apache ActiveMQ. ActiveMQ-CPP 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.

80 questions
0
votes
1 answer

activemq-cpp pull consumer receive remote address

I have 2 activeMQ brokers with queues and I would like to be able to log incoming ActiveMQ message broker remote address. After I perform pull consumer receive: pull_consumer->receive(1000); and after message arrives I do this: ActiveMQConnection…
Ulterior
  • 2,786
  • 3
  • 30
  • 58
0
votes
1 answer

How do I terminate/stop all other thread when I catch specific value in one of the thread execution (in activemq cpp)?

I have parallely launched 5 threads which are calling specific function. If one of them returns some specific value, I need to terminate the further processing of all other remaining threads and the specific function is called asynchronously in the…
Rushabh
  • 73
  • 1
  • 8
0
votes
2 answers

How do I ensure a topic is removed from an ActiveMQ broker

I am having some trouble with an ActiveMQ broker not removing unused topics from it's memory. Currently our system is designed to generate many topics dynamically with names designated at runtime. These topics exist for the duration of the…
JMcCarty
  • 759
  • 5
  • 17
0
votes
1 answer

ActiveMQ CMS Client multi-thread to ack message by pthread_create

I have a question about ActiveMQ 5.11 broker with a local C++ CMS Client 3.9.3. I modified the sample code from the official site to use the pthread_create function to spawn a new thread and trying to ack the message (CLIENT_ACK mode) from the new…
Terry Hu
  • 381
  • 1
  • 3
  • 12
0
votes
1 answer

ActiveMQ master slave failover loses messages

ActiveMQ is losing a lot of messages when failover is involved (only on topics). The producer writes 1000 messages in the topic while (at the same time) the consumer is reading from the same topic. In the middle of the process, I close ActiveMQ…
Bogdan Cretu
  • 73
  • 1
  • 1
  • 7
0
votes
1 answer

CSActiveMQ CPP producer - can one session use multiple queues?

In a question and response here: ActiveMQ Producer Multiple Queues One Session The topic of a single producer sending messages to more them one destination is covered with a solution in Java. Can the same thing in CPP/CMS be done? I've tried to…
ItsGarand
  • 1
  • 1
0
votes
1 answer

ActiveMQ consumer memory usage keep increasing after onMessage call

I'm in the process of trying out ActiveMQ with Flatbuffers. Everything seems to be working fine on the producer but the consumer memory keeps going up the longer the process runs. The producer marks the message to be NON_PERSISTENT and send about 30…
BrianP
  • 1
  • 1
  • 3
0
votes
1 answer

activemq-cpp c++ client how to use ssl url to connect server

I am currently using the activemq-cpp c++ client to connect to the backend server. When using the TCP protocol, it is possible to communicate. I am using the example above at https://activemq.apache.org/components/cms/example. But now I need to use…
new a
  • 11
  • 2
0
votes
1 answer

Failed to build activemq CMS 3.9.5 with OpenSSL 1.1.1

Readme.txt for ActiveMQ CPP library version 3.9.5 states 1.3 OpenSSL If you wish to use the SSL Transport then you will need to have OpenSSL and its includes installed on your system. We recommend that you use version 1.0.0 or higher for best…
mikmela
  • 48
  • 7
0
votes
1 answer

ActiveMQ CPP brokers URI problem

I'm using ActiveMQ CPP 5.2.3. I'm trying to add transport.commandTracingEnabled=true to tcp transport…
dimba
  • 26,717
  • 34
  • 141
  • 196
0
votes
2 answers

Activemq is failing at startup while creating connection from activemq connection factory

In our application we are creating queues by using plain java code below, but sometimes this get failed cause of following error. I have clue that it fails cause of jar but i have placed all latest jar but still it is failing . Now I have no idea…
user9923492
  • 1
  • 1
  • 1
0
votes
1 answer

ActiveMQ - How do I ignore undelivered messages

I have a queue producer(NON_PERSISTENT) and a queue consumer connected to my ActiveMQ server. If a producer sends a message to a queue while the consumer is not connected to ActiveMQ, it seems it is stored and delivered when the consumer is up and…
xyzt
  • 1,201
  • 4
  • 18
  • 44
0
votes
1 answer

ActiveMq: persistent queue and offline system

I'm a fresh user of ActiveMQ technology, and I have some problem approaching this technology. I have the following situation: I have a SW, running in a embedded (offline) ARM device, that archive a set of videos on a upluggable hard disk at run…
Giox79
  • 124
  • 11
0
votes
1 answer

Loading 3rd party DLL fails with Unhandled Exception at runtime (Log4CXX, ActiveMQ)

I'm trying to run an out of the box ActiveMQ example http://activemq.apache.org/cms/example.html on Windows with VS 2008 in a 32-bit C++ Console application. The project is built but when I run the program, I get the exception. Unhandled exception…
Bokhari
  • 103
  • 1
  • 2
  • 9
0
votes
1 answer

Segmentation fault issue during creation new thread using activemq-cpp library

My environment is opensuse, gcc5, clion, active-mq 3.10.0. Am my missing something? I got Segmentation fault after launch program. class MyTask : public CompositeTask{ public: MyTask() { } public: virtual bool…
Szymon Madera
  • 87
  • 1
  • 6