Hello all,
I am trying to make a web based chat app based on Smack.
I have the following code which I call from a jsp:
//get the connection
public void getConnection(String user, String pwd) throws XMPPException
{
conn = new XMPPConnection(HOST,PORT);
conn.DEBUG_ENABLED = true;
conn.login(user,pwd);
System.out.println(user+“CONNECTED”);
}
public void chat(String message,String user) throws XMPPException
{
Chat chat = conn.createChat(user+"@asterisk1.local/Spark");
chat.sendMessage(message);
}
/code
Question is, how many connections can be established?
What is an efficient method of handling the connections or does Wildfire do this automatically?
TIA!