Reputation: 1273
I've been using mosquitto for several months now, but now I've got to the point that I'd like to build a standalone broker into my Java application. Is it possible to do this, or would I need to have to have mosquitto running by itself on a server?
Upvotes: 1
Views: 3570
Reputation: 59826
You may be able to create a JNI wrapper around mosquitto, but you may do better looking at one of the other broker implementations, specifically one already written in java.
There are several listed on the mqtt.org server wiki page.
https://github.com/mqtt/mqtt.github.io/wiki/servers
e.g. Moquette, HiveMQ or ActiveMQ
Upvotes: 2