XMPP 连接池
我正在开发通过我自己的协议(持久套接字连接)与用户通信的服务。我需要添加用户通过 XMPP 发送和接收消息的可能性。所以,在服务器上我希望实现 XMPP 连接的连接池,但我认为它已经完成了,但谷歌什么也没说......你现在实现了吗?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以使用XMPPPool。我很久以前就写过,但我不以任何方式支持它。
然而,它就在那里。我希望你觉得它有用。
提供了一些文档。
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.
一些 bosh 连接管理器确实在内部使用 xmpp 连接的连接池。这是我知道的用 Java 编写的: JabberHTTPBind 。您可能只想查看它的代码以获得进一步的帮助。
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.