Hi there!
I’'m having some problems in order to send messages to another computer.
In the code below, I connect in the Jive server as admin user. It works since
if I change the password, it does not connect.
XMPPConnection connection = new XMPPConnection(“localhost”, 5222);
if (connection.isConnected()) {
connection.login(“admin”, “123”);
}
As I said before, my problem is about send messages.
In the other machine, I have a user “bizonhex” connected.
I have the code below in order to send messages to “bizonhex” user.
Chat chat = connection.createChat(“bizonhex”);
chat.sendMessage(“Hi Bizonhex! How are you?”);
The problem is: how can I get this message in the other computer used by “bizonhex”?
I’'ve tried so many times using System.out.println… but I got only null messages!
Have I to create another Chat object with “admin” in the other computer (bizonhex)?