Hi I want the xmpp connection object in my openfire plugin code.I am using the smack api in opefire plugin code to get it.But as soon as i deploy my plugin and starts the openfire it says connection refused?Any idea how can i get the connection?If i start the server and after some time i upload the same plugin it passes.but i want to copy plugin jar before starting the server.any help? try{ ConnectionConfiguration config = new ConnectionConfiguration("ingbtcpic5nb99e", 5222,"ispf.com"); XMPPConnection con = new XMPPConnection(config); con.connect(); con.login("admin", "admin"); } catch(Exception e){ System.out.println(e); } I m using the above code in my plugin for openfire.
↧