For some reason, the java gateway is not working with ioBroker at the moment, with mosquitto everything is stable though...
What I could find out so far: at some point during initialization, the mqtt client will get stuck when trying to publish messages. This only happens when the refresh period topics are set and thus read at startup.