Sam sep
Sam sep

Reputation: 41

Apache Activemq and Mqtt

I am trying to use Apache ActiveMQ as my MQTT broker. Everything is straightforward and i can send messages from JMS broker to MQTT client and vice versa.

I've got a question which i couldn't found anywhere. Is there a method or mechanism available which lets MQTT client to define "message selector" like JMS clients and consumers.

Regards, Sam

Upvotes: 2

Views: 1362

Answers (2)

TarunSinghal
TarunSinghal

Reputation: 1

Yes, you can create ACL file in which you can define certain Topics on which client can subscribe... And you can do one more thing.. you can also define topic on user authentication bases .. it means different users are permitted on different topics accordingly.

Upvotes: 0

Martin Rauscher
Martin Rauscher

Reputation: 1806

The only way for MQTT Clients do decide what Messages to get is by subscriptions.

These can either be a concrete Topic ("Aaaa/Bbbb/Cccc") or a Wildcard Topic string ("aa/#/cc" or "aa/bb/+/cc")

Upvotes: 1

Related Questions