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;
public void chat(String message,String user) throws XMPPException
Chat chat = conn.createChat(user+"@asterisk1.local/Spark");
Question is, how many connections can be established?
What is an efficient method of handling the connections or does Wildfire do this automatically?