Hi,

        I am using emite code to connect to Jabber XCP server using Basic 
example. 
But i am not able to get the connection. Always the session.getState() 
says "connecting"

        Below is the code snipplet

        public void onModuleLoad() {
                
                BoshConnection connection = 
(BoshConnection)Suco.get(Connection.class);
                BoshSettings boshSetting = new 
BoshSettings("httpbinding","www.xcpserver.com");
                
                connection.setSettings(boshSetting);
                
                /*
                 * We get the Session object. The most important object of 
Emite Core
                 * module.
                 */
                final Session session = Suco.get(Session.class);
                GWT.log("session ="+session,null);
                
                GWT.log("creating login", null);
                session.login(uri("[email protected]"), "test1");
                
                GWT.log("loggedin ="+session.isLoggedIn(),null);
                
                
                GWT.log("session state after login="+session.getState(), null);
        }


        Let me know how what is the problem with the code.

regards,
Sumit

                



Reply via email to