I’m looking into using Smack and Openfire to control clusters of (internal) servers. The idea is that these servers come online to a central wildfire server and that they can then receive commands over the XMPP channel. Commands like ‘restart/reload service xyz’ or ‘install new version of service xyz’.
I’ve made a really simple start by creating a process that uses Smack to connect to Wildfire. Basically as described on the http://www.igniterealtime.org/builds/smack/docs/latest/documentation/overview.ht ml page. I’m connecting all servers in a specific cluster with the same jid and a unique id as the resource name.
The problem is that only one server receives the message that I am sending. It seems that the last one connected has the highest priority and only that client is actually receiving the message.
Am I approaching this the wrong way? Is there a better way to do broadcasting to multiple clients?