-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Shared subscription doesn't work with eclipse paho java client #921
Comments
Can you please trace the client/user and paste the trace logs? Use |
sure, @phanimahesh I can see the published messages in trace log: but they are not processed by paho MqttMessageListener |
another weird thing |
+1 |
guys, do you have any estimates on this issue? |
Hi, I suspect this problem concerns node-red mqtt node as well, there is also the paho client used and subscription is not working on local, queue and share |
@mruepp @mv200580 @ig0r I will close this issue now for lots of users of EMQ use shared subscription to consume sensor data. The tools like mqtt.FX will not show MQTT messages from shared subscription. For example, a '$queue/topic' is subscribed, but messages from 'topic' are published to the tool which will drop them silently. |
@emqplus I am not sure that clearly understand your last post.. So you don't plan to maintain the shared subscription feature for the java clients? |
@emqplus A simple solution to ensure universal support would be to publish topics to @mv200580 I'm not sure where the bug is, can't comment without doing some research. Shared subscriptions are not part of the spec, so implementations differ. Essentially java clients are rejecting any messages from topics they aren't subscribed to, even if they receive them. They asked for messages from I wonder how they handle messages from |
Thanks for reply, @phanimahesh !! I researched a bit java client behavior with messages from topic $client/clientid. If client is not subscribed to that topic explicitly, it doesn't process messages published to that topic, despite the messages displayed in subscribed client trace log:
but if we subscribe the client explicitly to $client/clientid topic, then it begins to process messages:
but the same doesn't work with $queue/topic and $share/topic, the client don't see the messages anyway |
Just want to find out now - is it possible for paho java client to switch off the topic name validation.. this can be the solution, I guess |
The client subscribes to $queue/topic but receives messages from topic. Not
sure what'll happen if you subscribe to both.
…On Thu 6 Apr, 2017 17:09 mv200580, ***@***.***> wrote:
Just want to find out now - is it possible for paho java client to switch
off the topic name validation.. this can be the solution, I guess
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#921 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ABnL8ERpyZ76-wq0XoSIqk8XU5jpdH66ks5rtM7lgaJpZM4MLMJV>
.
|
Environment
Description
Shared subscription feature doesn't work with eclipse paho java client, while it works well with the mosquitto_pub/sub in the same environment.
The same issue with the mqtt.FX application http://mqttfx.jfx4ee.org/ (which is based on the eclipse paho actually).
There is the groovy subscriber sample in the attachment (mqtt01.groovy) to reproduce the issue.
The text was updated successfully, but these errors were encountered: