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

Ruby Stomp Gem #publish seems to truncate messages to 256 characters?
ActiveMQ: how can I deliver all messages in a queue to many consumers?
ActiveMQ broker redelivery vs consumer redelivery
Unable to define correct authorization rules… topic://ActiveMQ.Advisory.Producer.Queue.Q1
Spring web-socket message size
schedule moving of messages from activemq DLQ to another queue in ActiveMQ
Use ActiveMQ 5 and IBM MQ 8 in the same application
ActiveMQ performance for producing persistent text messages
active mq and spring jmstemplate how to properly shut down
How provide reliability of ActiveMQ broker?
XA transaction across two separate resource managers/XAResource's
How can I configure a static network of TomEE embedded ActiveMQ brokers so that clients can communicate?
How to enforce user permissions in hawtio for standalone activemq
How are subscribers maintained in case of topic based distributed messaging
Failover for Blob transfer in ActiveMq
ActiveMQ - possibility of session/transaction replication

Categories

HOME
protocol-buffers
seedstack
compilation
iverilog
bittorrent
repair
joomla3.2
locationmanager
getopenfilename
circleci
complexity-theory
xbox360
fresco
google-cloud-logging
tomcat8
exe
scala-ide
spring-shell
jitsi
spring-ldap
gitkraken
neo4j.rb
liferay-6.2
uislider
rxjs5
animated-gif
plyr
iwebbrowser2
javax.persistence
dotcms
mongodb-3.4
rust-cargo
plantuml
kendo-listview
buildforge
des
pdfminer
xll
hidden-markov-models
assemblies
microkernel
vb.net-to-c#
google-prediction
sendinput
nomad
supertest
scala-breeze
uiautomatorviewer
node-apn
webvtt
gtk#
deedle
nitrousio
mifos
streamwriter
nsrunloop
livecycle
bbc-micro
powerpoint-2013
gnucash
jeasyui
android-async-http
teensy
webgrind
enunciate
python-cffi
juniper-network-connect
dnx50
hmisc
unhandled
phpredis
ocmockito
whitespace-language
text-align
android-audiomanager
symja
rebar
nesper
windows-messages
cpu-time
flipboard
jchartfx
usb-flash-drive
nosql-aggregation
proxy-server
san
mute
rautomation
stty
xs
jquery-lazyload
tfs-sdk
spark-view-engine
struts2-json-plugin
cakeyframeanimation
struts2-s2hibernate
delphi-prism
firefly-mv
fork-join
gaelyk
processors
rakudo
twitter-feed
prism-2
objectinstantiation
rendering-engine
bindable-linq
error-detection

Resources

Database Users
RDBMS discuss
Database Dev&Adm
javascript
java
csharp
php
android
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App