Hello,
I would execute an example to use OpenFire and XMPP with Java language…;
public class TestXMPP { public static void main(String args[]) throws Exception { ConnectionConfiguration config = new ConnectionConfiguration("127.0.0.1");
XMPPConnection xmppConnection = new XMPPConnection(config);
try {
xmppConnection.connect();
xmppConnection.login("serveur22", "serveur22");
Message msg = new Message("salon@conference.localhost/serveur22", Message.Type.normal);
msg.setBody("Test Message TestXMPP.java");
xmppConnection.sendPacket(msg);
xmppConnection.disconnect();
} catch (XMPPException e) {
e.printStackTrace();
}
}
}
I can send to a specific login but not for a room…
I think line 10 is not correct…
If you have a solution, thanks a lot