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?

Categories

HOME
amazon-web-services
artificial-intelligence
opencart
typelite
mpdf
freeradius
apple-push-notifications
shinyapps
clearcase
opencv-python
compilation
plpgsql
autocomplete
mathematical-optimization
gentelella
moodle-api
clone
haxe
fedora
kurento
responsive-design
polymer-2.x
swarm
chromecast
fullcalendar-scheduler
jquery-select2-4
webstore
dma
corona
global-variables
android-5.1.1-lollipop
l20n
xsl-fo
scheduled-tasks
parceler
pfobject
cmake-gui
pe
intel
environment
fstar
sendmessage
progid
snap-framework
actframework
listjs
orchardcms-1.8
formsauthenticationticket
ms-solver-foundation
llvm-ir
python-jira
vb.net-to-c#
distributed-caching
elasticsearch-aggregation
permission-denied
type-inference
redisson
sonatype
nslayoutconstraint
gnome-terminal
test-data
email-forwarding
rcharts
degrees
kendo-treeview
bigdecimal
okio
dmarc
wicked-pdf
mnesia
gridbaglayout
android-expansion-files
deeplink
ibm-was
libz
supersocket.net
darwin
abstract-factory
wicked-gem
clarion
shoes
ssmtp
string.format
adhoc-polymorphism
wicket-1.5
full-text-indexing
lumia-imaging-sdk
mfmessagecomposeview
xulrunner
mft
mousemotionlistener
acitree
disjoint-union
struts2-json-plugin
playorm
border-box
image-scanner
opends
algol68
netstream
quartz-core
drawimage
delphi-prism
haiku
datacontracts
printqueue
urchin
facebook-fbml
rawcontacts
efs
version-control-migration

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App