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

Could someone help me to understand difference between static queue and dynamic queue?
ActiveMQ JMX: how to get active consumers' number of enqued and dequeued messages?
JAVA - Spring Integration Flow Transaction + com.atomikos.icatch.HeurHazardException: Heuristic Exception
ActiveMQ :Web demo not working
How to set ActiveMQ CMS producer frequency
Can message we are pushing to a Queue be moved to Active MQ Dead Letter Queue (DLQ) if any exception/connection error occur?
ActiveMQ: Can i make Queue as a subscriber to Topic?
Consumer Count / pending Message Count from Queue + ActiveMQ + Java
Do we need to start ActiveMQ when configuring through spring?
AtiveMQ Custom Authentication using BrokerFilter
Preserving order of execution in case of an exception on ActiveMQ level
View Activemq Messages with Jolokia and Hawt.io
ActiveMQ Loadbalance and HA
ActiveMq and Oracle AQ bridge error
Aysnc ActiveMQ Message consumer unable to consume messages
Individually limit disk storage size for queues in ActiveMQ

Categories

HOME
android-espresso
firebase
powerbi
d3.js
softlayer
key
initialization
iverilog
malware
video-streaming
sympy
azure-logic-apps
jodatime
bnf
cloudsim
http-authentication
gitkraken
bosun
tracing
vcenter
progid
wampsharp
fotorama
epplus
char-pointer
django-smart-selects
rdp
plane
oauth2-playground
vungle-ads
flume-twitter
section508
swift2.3
webalizer
roracle
renderman
node-apn
connect-direct
clrs
degrees
prefetch
pbx
xcode6.4
jsonix
clp
coovachilli
wolfram-language
groovyfx
vaadin4spring
gwt-syncproxy
jsr363
seadragon
flush
ioexception
apple
bootstrap-wysiwyg
alwayson
karma-coverage
com0com
prism-4
sablecc
nhibernate-criteria
sunos
hp-idol-ondemand
device-admin
tabris
back
mobile-country-code
quantify
windows-messages
spring-security-acl
tnt4j
html-frames
donut-chart
ntlmv2
getproperty
websphere-6.1
first-class
exponent
litespeed
drawimage
webresponse
aspbutton
.net-services
external-sorting
datagridcolumn
community-server

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