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
0 answers

List of messages as content in message

Is there a way to add a list (vector) of messages as content to a message? I know there is no direct way of doing this, but what would be the workaround to achieve such behavior? Regards Klaus
0
votes
1 answer

Is there any way to have an implementation like JMS:PooledConnection in Activemq while using CMS connectionfactory

H, I am looking to create a connection pool for activeMQ producers, which will bw available to serve as a connection object to any queue. I have seen the implementation of JMS::PooledConnection, probably I wold need the same implementation in CMS as…
Sid
  • 21
  • 4
0
votes
1 answer

How to set ActiveMQ CMS producer frequency

I have a CMS producer which sends message in a while loop. This is extremely fast and unnecessary. I would like to restrict this to 1 message per second or so. BytesMessage *message =…
user4964330
0
votes
1 answer

How to set message group id in activemq mapmessage in c++

I am writing an activemq producer in C++, which is writing a map message to an activemq queue on .net platform. I am using the NMSXGroupID (of the ActiveMQMapMessage type) to route the message accordingly on the .net side when I am consuming the…
bhavesh
  • 1,343
  • 2
  • 14
  • 23
0
votes
1 answer

Replicate Activemq Message to once server to another server activemq

Q: we want publish same message in different Activemq servers. can we have any approach. like we will publish once and activemq changes will give a forward that message to another instance. or is there any way we can do it by the activemq config…
0
votes
1 answer

Compile error when using activemq and

On my ubuntu system, I write the code that using activemq-cpp 3.6.0 and mman.h and there is a tricky compile error. I write a very simple code to verify this problem: #include #include int…
Matt
  • 3
  • 2
0
votes
1 answer

Apache MQ transportConnectors uri value issue

Consider the following code: It is not able to resolve the uri value. The error I am getting is : STACKTRACE: at…
Nagendra Singh
  • 61
  • 1
  • 11
0
votes
1 answer

activemq - the simplest way to count number of messages with a specific property value

In out product we need to count occasionally the number of messages in a queue that hold a specific property value. The straight forward way is to use a queue browser with a selector. But: Is there a way to get this statistics without browsing all…
Ofer B
  • 117
  • 1
  • 12
0
votes
1 answer

decaf::util::NoSuchElementException when trying to connect to Wildfly

I am getting a decaf::util::NoSuchElementException when ActiveMQ CPP tries to connect to my WildFly instance. I am using the latest ActiveMQ CMS and wildfly 8.0.Final. I am using the example that came with ActiveMQ CPP and pointed to my wildFly…
chad martin
  • 31
  • 1
  • 7
0
votes
1 answer

ActiveMQCPP - Identifying Meesage type

I've worked with activemqcpp API before in a few projects, but I've always known what type the message are beforehand, so the dynamic casting to the corresponding message subclass was safe. Now I'm building a wrapper for the MQ library and can't…
Nare
  • 71
  • 8
0
votes
1 answer

src/main/BytesMessage.cpp:24:30: fatal error: cms/BytesMessage.h: No such file or directory

Can someone tell me how to install pyactivemq? I was following "Fedora Core" instructions from http://code.google.com/p/pyactivemq/wiki/Building [mmopuru@mmopuru pyactivemq]$ python setup.py build running build running build_ext building…
Murali Mopuru
  • 6,086
  • 5
  • 33
  • 51
0
votes
1 answer

ActiveMQ - memory not released after consuming all messages

I've made a test, based on the example solution of the activemq-cpp library. In the test I send 50,000 messages to a queue, and after they're all sent I consume them, with INDIVIDUAL_ACKNOWLEDGE on the session and message->acknowledge() on every…
Ofer B
  • 117
  • 1
  • 12
0
votes
1 answer

ActiveMQ-CPP getDestinations() implementation

AFAIK getDestinations hasn't been implemented in the ActiveMQ-CPP api Is there a way of getting a list of all destinations added to the broker via the C++ API?
Aide
  • 3
  • 1
0
votes
2 answers

ActiveMQ-cpp Broker URI with PrefetchPolicy has no effect

I am using activemq-cpp 3.7.0 with VS 2010 to build a client, the server is ActiveMQ 5.8. I have created a message consumer using code similar to the following, based on the CMS configurations mentioned here. ConnClass is a ExceptionListener and a…
devil
  • 1,829
  • 16
  • 23
0
votes
1 answer

ActiveMQ CMS - consumer selectors with CMSPriority

I've activated prioritizedMessages in the activemq configuration, and priorities work fine, i.e. when I'm sending X messages, half of them with priority 0 and half of them with priority 9, the consumer receives the messages in the correct…
Ofer B
  • 117
  • 1
  • 12