Creating web application using Smack

Hi, I am trying to create a web application that uses Smack API to connect to XMPP servers. What we want is for the web-application to log into xmpp server on behalf of multiple users using a single socket connection. Single socket connection is desired for scalability reasons because if the application is hosting say > 100,000 users then it shouldn’t run out of open sockets. Is that possible with Smack?

I am just trying to understand how smack works. Does it open multiple ports on the client for different users or a single port is used for communication with the server?

I think someone had already tried to solve the issue.

http://www.igniterealtime.org/community/thread/34338

I will refer to this topic then.