Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [paho-dev] Difference in implementation : Java / .NET (subscribtion/messageArrived)

Hi,

the Java client was contributed by IBM and we have our own idea of how the client libraries should work.  The .Net client was written and is maintained by a valued contributor Paolo Patierno, so may well have a different approach in some areas.   A particular behaviour could be considered a bug, or just a variety of approach.

In this case, it sounds like the .Net client might need an enhancement.   If there are any changes that you would like to see, a good way of highlighting those are to raise bugs.  (Bugs are used for features, enhancements and general work items as well as true "bugs".)

https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Paho (component M2MQTT)

With a bug, we can track the discussion on a proposed change, and keep a record of the discussion and decision, and the fix if it is made.  This sounds like a good subject for a bug.

Thanks

Ian


On 10/26/2015 07:41 PM, Alf-Helge Vatne wrote:
Being new to MQTT and wondering to utilize it in an upcoming project : but is it a bug or feature that "Paho Java" and "Paho .NET" (m2mqtt) seems to differ in how a subscriber should work.

Java allows you to throw an Exception in messageArrived:

http://www.eclipse.org/paho/files/javadoc/org/eclipse/paho/client/mqttv3/MqttCallback.html#messageArrived%28java.lang.String,%20org.eclipse.paho.client.mqttv3.MqttMessage%29

from javadoc: "An acknowledgment is not sent back to the server until this method returns cleanly."

...but ".Paho NET" does not seem to work the same way. An acknowledgment has already been sent to the broker when the message is "delivered" to the subscriber.

https://m2mqtt.wordpress.com/using-mqttclient/

No exceptions can be thrown in subscribing app. I like the Java-version better - it gives the subscribing app more control.

Should "Paho .NET" be fixed? Or have I misunderstood something?

Thanks for the great work.


_______________________________________________
paho-dev mailing list
paho-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/paho-dev

-- 
Ian Craggs                          
icraggs@xxxxxxxxxx                 IBM United Kingdom
Paho Project Lead; Committer on Mosquitto


Back to the top