I’m a newbie on this, so could do with some help on something I’m trying to put together using SMACK:
First , the following works:
- I have a simple ‘alarm’ mechanism written in Java which works and does this:
i. Connects to my OpenFire, Logs is an ‘usera’ and waits for the alarm condition.
ii. When the alarm triggers, it sends a message to ‘userb’ (getChatManager()…which an empty implementation of ‘processMessage’ - so its one-way communication). The receiving user is connected via Spark client.
ii. When shut down it does a disconnect.
All works fine and dandy.
Now what I would like to do is instead of sending a message to a specific user I need to target a ‘conference’.
I set up the conference using a Spark client, and keep the conference room dialogue open: this provides the JID for the conference, something like:
‘alarms@host’. The room is open and any client (testing this - works fine with interactive human users) can join the room.
I changed the alarm-sender to send a message to the new JID - but none of the clients in the conference room either see the presence of this user or the message. The sender program does not error.
Do you have to code differently when sending to a conference-room or have I messed up the JIDs I wonder ?
(I notice that the conference room JID is actually something ‘email@example.com’ whereas the JIDs of the users are just ‘alarms@host’.)?