问题
I'm developing service which communicates with users via my own protocol (persistent socket connection). I need to add possibility for users to send and receive messages via XMPP. So, on server I wish to implement connection pool for XMPP connections, but I think it's already done, but google says nothing... Do you now implementations?
回答1:
You can use XMPPPool. I wrote that a long time ago and I don't support it in any way.
However, there it is. I hope you find it useful.
A bit of documentation is available.
回答2:
Several bosh connection managers do use connection pooling of xmpp connections internally. Here is one i know written in Java: JabberHTTPBind . You might just want to have a look at it's code for further help.
来源:https://stackoverflow.com/questions/3718317/xmpp-connection-pool