activemq
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 = session->createBytesMessage(); message->setStringProperty("M_P_C_N","someMsg"); message->setStringProperty("M_P_T_N","someTopic"); message->writeBytes(data); producer->send(message); I was wondering if CMS has a function or a way to set the frequency of the sending?
There is no such facility in ActiveMQ-CPP. Controlling producer send rate is something your application needs to handle, the C++ client is only responsible for sending the messages, you are responsible for the logic surrounding what and when a message is sent.
Related Links
STOMP Protocol - Session ID Questions
What solution should I use for this webapp with websockets. ActiveMQ?
NIO disadvantages in ActiveMQ
How can I programatically purge an ActiveMQ queue using the Apache.NMS API?
Using Camel to transparently log messages from queue
ActiveMQ and JMS : Basic steps for novice
URL Encoding a Camel Exchange Body
Where can I download ActiveMQ Source Distributions?
activemq embedded broker
How to debug ActiveMQ client?
activemq java version
When there are multiple consumers of a queue in ActiveMQ, are they all delivered the same messages as they arrive on the queue?
ReceiveNoWait doesn't work with Apache.NMS & ActiveMQ
How do you replay KahaDB message archives?
configure the broker
How to connect to ActiveMQ broker (stomp protocol,activemessaging) running in another Machine?