Join the DZone community and get the full member experience. Even if today they are considered as different areas in IT, they both deal with distributed systems where the main differences are represented by the used communication protocols.

In the following, we call it the jolie-mosquitto connector.This article is dedicated to those who are interested in learning how Mosquito works and also to those who are interested in Jolie.

It is worth noting that the scope init{}, in Jolie, is executed once at the startup of the service, thus the configuration of the connector is achieved at the start-up of the service.

We described the Java Paho library that is at the basis of the connector and we show how a Javaservice has been created on top of it for allowing its usage inside a Jolie service.

Related Articles