activemq


ActiveMQ MQTT (QoS 1) doesn't republish messages when client not acknowledged the messages


I'm using ActiveMQ 5.10 as the MQTT Broker with one Java client to send messages in JMS and one C client to receive the messages.
Here's the Java code snippet:
MessageProducer producer = session.createProducer(new ActiveMQTopic("topic1"));
TextMessage text = session.createTextMessage("test msg");
text.setIntProperty("ActiveMQ.MQTT.QoS",1);
producer.send(text);
After capturing the TCP packages, I confirmed the problem: If ActiveMQ sent out a message but didn't receive a PUBACK from the C client, ActiveMQ didn't resend the message. So the C client would never receive the message any more, event the message was under QoS 1 (at-least-once).
How can I send the message with JMS (and/or configure ActiveMQ) to make QoS 1 truely work? Thanks a lot!

Related Links

Where should I add the failover:tcp://host:port?
Does Apache Apollo have failover support?
Creating AMQ network of broker clusters on JBoss Fuse 6.2, without fabric
Could not refresh JMS Connection for destination 'queue://inventorydsDestination' - retrying in 5000 ms. Cause: AOP configuration seems to be invalid
ConcurrentConsumers not created using DefaultMessageListenerContainer but using maximumActiveSessionsPerConnection on PooledConnectionFactory
ActiveMQ messages getting stuck in networked broker setup
Difference between “Active Non-durable Subscibers” and “Active Subscribers” for a particular Topic
Negative count in ActiveMQ pending message
ActiveMQ inactivity timeout
Need Activemq MemoryUsage optimization - my queues are overflowing
ActiveMq customers cannot receive messages
Activemq not start in linux mint17
ActiveMQ Redelivery Police for a message
Identify connected ClientId's in ActiveMQ Network Brokers
Format ActiveMQ server like hdfs node format?
Does auto-acknowledge mean no-ack?

Categories

HOME
shinyapps
yahoo-weather-api
devexpress
filesize
nsis
gallery
qooxdoo
vue-resource
tibco
apache-kafka-connect
stored-procedures
phpmqtt
tfs2010
driver
spring-amqp
ex
smartgwt
dhcp
phonegap-build
rpmbuild
gravity
susy-sass
activeadmin
altium-designer
pdf.js
jstree
tortoisemerge
python-imageio
dnsmasq
basic-authentication
nic
nsmutablearray
bootstrap-sass
dreamfactory
microsoft-ui-automation
google-now
notesview
react-intl
destroy
ipp-protocol
gcal
adblock
dredd
openstack-glance
patternlab.io
ptvs
sidewaffle
rational-performance-test
openquery
xcode8-beta4
adjacency-list
exists
sharepoint-apps
jemdoc
xcopy
okta-api
certificate-authority
django-validation
webgrind
ambiguity
algebraixlib
com0com
webproject
shoes
quercus
text-align
findersync
createfile
famo.us
juttle
cout
object-code
otl
windows-messages
tabletools
wso2bam
boolean-algebra
jms-serializer
lync-2010
cloo
pbkdf2
delphi-xe4
ofstream
itunes-sdk
xmlwriter
ip-geolocation
instance-variables
live-wallpaper
monocross
opends
mkannotation
yuidoc
expression-web
boost-foreach
sql-parametrized-query
fragment-identifier
regression-testing
bass
tabbarcontroller
yahoo-maps
dm
data-retrieval

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