A simple MQTT wildcard subscriber which stores all messages to a MySQL database
Java
Switch branches/tags
Nothing to show
Clone or download
Latest commit 8ef0449 Apr 19, 2013
Permalink
Failed to load latest commit information.
lib/org/eclipse/paho initial project Apr 18, 2013
src/main initial project Apr 18, 2013
.gitignore initial project Apr 18, 2013
LICENSE initial project Apr 18, 2013
README.adoc Update README.adoc Apr 19, 2013
pom.xml initial project Apr 18, 2013

README.adoc

What is this?

This is an example code from the HiveMQ Blog post "The missing piece between MQTT and a SQL database in a M2M landscape". This example project shows how a MQTT wildcard subscriber which stores all messages to a MySQL database could be implemented.

Why was Paho bundled with the code?

At the time of the writing, Paho was not yet mavenized. Since Maven is awesome (or at least one of the not-so-sucky build systems), we bundled Paho in a Maven file repository with this code.

Is this production ready?

Probably not, this is a proof of concept. However, this example project could get you started quickly for implementing a real world application. We recommend to use a sane Logging Library (like Logback) and upgrading to the latest Paho version. Probably Paho is already mavenized when you read this, make sure you check Maven central.

Important: Wildcard root subscribers are not the smartest way to store all MQTT messages into a database. See this link