> For mqtt I typically use the mosquitto broker. It is written in C and
> very small. So it runs very well on small hardware. Most linux distros
> already provide a package for it.

Mosquitto is fine if you just want a broker, outside of your OSGi/Java
subsystem. But if you want the broker to be part of the OSGi world, then
you will discover that Mosquitto is not very dynamic. Best approach in DS
terms is probably:
  - configuration = required
  - activate() writes /etc/mosquitto.conf based on configuration, and
launches mosquitto
  - deactivate() shuts down mosquitto
  - update() -> we don't have an update() so any config change leads to a
deactivate() + activate()
  - test hard with stopping and restarting the service, you might need to
build in a delay somehow (the horror!)


_______________________________________________
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev

Reply via email to