Muse API & Openfire

Hello everyone,

I have installed Openfire, and using Muse0.81 API for client side coding,. however every time i connect using the examples provided with the API, i get “ioexception: sockect closed” error. I cant figure out why this error is comming.

My question is that, is Openfire and muse compatible with each other?

If any one can help me with this would be appritiated…

This is the simple code that i am using to connect to the server

/******************************************************************************* ****************************************************/

import com.echomine.jabber.;
import com.echomine.net.
;

import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.Date;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;

public class JabberN
{
JabberSession session = null;

public JabberN()
{
try
{

Jabber jabber = new Jabber();
JabberContext context = new JabberContext(“admin@pc5/Home”, “1234556”, “192.168.10.44”);

        session = jabber.createSession(context);

ConnectionListener listener = new ConnectionListener() {
public void connectionStarting(ConnectionEvent event)
throws ConnectionVetoException {
System.out.println(“Connection starting…”);
}
public void connectionEstablished(ConnectionEvent event) {
System.out.println(“Connected to remote server.”);
}
public void connectionClosed(ConnectionEvent event) {
System.out.println(“Connection closed.”);
}
};
session.getConnection().addConnectionListener(listener);

System.out.println(“N: Starting connection…”);
session.connect(“192.168.10.44”, 5222);

session.getUserService().login(); /I get error in this line saying IOException: socket closed.******/

    }
    catch(Exception e)
    {
        e.printStackTrace();
    }
    finally    { session.disconnect(); }
   
}

public static void main(String args[])
{
new JabberN();
}

}

/******************************************************************************* ****************************************************/

Thanks.

Unfortunately, Muse does not support the newer XMPP standards, only the old Jabber standards.

In order to talk to newer XMPP servers, you will have to use the new Feridian API. This API is fairly similar to Muse since some lower layers are reused. Unfortunately, Feridian does not have as much documentation, but good news is that it is still very similar to Muse so it should be an easy migration.