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
1
vote
1 answer

My C++ ActiveMQ client can send messages, but not receive messages

I have the ActiveMQ-CPP 2.2.1 Visual Studio 2005 project compiling and running. In the console window, it shows the messages are being sent, though they're not being received. I can both send and receive messages with ActiveMQ-CPP 2.0.1, but not…
BeachRunnerFred
  • 18,070
  • 35
  • 139
  • 238
1
vote
1 answer

ActiveMQ multiple topics using CMS

I am trying to create multiple topics within same connection by creating separate session for each topic. both Topics and 1st durable consumer created successfully but I am getting error while creating 2nd consumer. Code work perfect with single…
Shahzad
  • 305
  • 1
  • 3
  • 10
0
votes
1 answer

Building ActiveMQ-CPP with MinGW?

I have an upcoming Qt project that requires the use of ActiveMQ-CPP libraries. From my study so far, it seems ActiveMQ-CPP only supports MSVC on Windows. I'd prefer sticking with MinGW since it's a cross-platform project and all other platforms use…
Stephen Chu
  • 12,724
  • 1
  • 35
  • 46
0
votes
1 answer

activemq-cpp how can I get the status send or receive timeout

I have set the timeout property for a activemq connection when I send message to broker. But I couldn't get any exception or return when it send timeout. I couldn't gain the status of sending succeed or timeout. This also happened when I use…
jaylong35
  • 3
  • 2
0
votes
1 answer

activemq-cpp receive timeout when the message send to the queue with property timetolive

I send a message to the queue with property "timetolive" with activemq producer and then receive with activemq consumer function receive(long long timeout).After receive some messages the receive always timeout and cannot receive any messages…
jaylong35
  • 3
  • 2
0
votes
2 answers

Segmentation Fault Fail?

Program received signal SIGSEGV, Segmentation fault. [Switching to Thread -177935456 (LWP 5483)] 0xf79ff2ca in activemq::core::ActiveMQSessionExecutor::dispatch (this=0xf4b04bc0, dispatch=@0xf564e240) at…
DarthVader
  • 52,984
  • 76
  • 209
  • 300
0
votes
1 answer

ActiveMQ C++ Synchronous consumer

There are some code samples for ActiveMQ C++ Client, which are asynchronous. What I am looking for is synchronous consumer. I just want to send and get messages. The code I have pointed out uses asynchronous and not sure how to make a synchronous…
DarthVader
  • 52,984
  • 76
  • 209
  • 300
0
votes
1 answer

Message Compression in ActiveMQ STOMP Client

Is it possible to implement text message compression on publishing to a queue/topic(with out modifying the server or consumer)? I want to know if the existing Java STOMP client or CPP STOMP Client (ActiveMQ-CPP) supports the message…
M99
  • 1,859
  • 10
  • 28
  • 50
0
votes
1 answer

ActiveMQ-CPP prefetchSize 3.2.2

So far I am unable to get the prefetch size to function. I have tried: mySession->createQueue([quename]?consumer.prefetchSize=5); tcp://localhost:61616?prefetchPolicy.all=5 I am using the cms::Connection and cms::Consumers. Would I have to…
XanderLynn
  • 883
  • 3
  • 16
  • 29
0
votes
1 answer

AcitveMQ C++ connection start() hangs for SSL

I am trying to get SSL working with the activemq-cpp library. I've had no problems with a normal TCP connection, but with an SSL broker URL the connection start method never returns. Here's my code: #include #include…
pcarter
  • 1,516
  • 14
  • 21
0
votes
2 answers

ActiveMQ CPP Common Name and Subject Alternate Names

I'm getting the below issue from CMSException while calling createSession() Server Certificate Name doesn't match the URI Host Name value. I'm using ssl://172.12.12.13:61617. The "Common Name" value is Machine0x and the IP address I used in the…
wsa225
  • 11
  • 3
0
votes
1 answer

Does Tuxedo XA transaction manager support ActiveMQ as resource manager for C++ applications?

I am looking for examples or resources to prove support for ActiveMQ as one of the resource managers with Tuxedo as the XA transaction manager. I am working on building a C++ Application to do the same. I am unable to find any documentation on…
N3Xg3N
  • 97
  • 1
  • 12
0
votes
1 answer

ActiveMQ CMS: Is there a way to use it without threading?

I took the sample code from Apache here: https://activemq.apache.org/components/cms/example (The producer section specfically) and tried to rewrite it so it doesn't create any threads for producing. And instead, in my program's main thread, creates…
dmscs
  • 255
  • 2
  • 12
0
votes
1 answer

AMQ INDIVIDUAL_ACKNOWLEDGE Mode

I am using INDIVIDUAL_ACKNOWLEDGE mode to receive messages and manually acknowledge messages received from AMQ using C++ CMS library which implements JMS standards via Openwire protocol. I have got two consumers (Consumer 1, Consumer 2) receiving…
Ajay Kumar
  • 21
  • 5
0
votes
0 answers

ActiveMQ CMS Failover mechanism does not work

I am using ActiveMQ 5.10.2 and I am trying to test a failover scenario with C++ clients using Apache ActiveMQ CMS (activemq-cpp-library-3.9.5). The configuration for one of the two brokers is:
kbezos
  • 1
  • 1