本文介绍了如何在像tomcat这样的容器中创建XMPP客户端?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要通过在tomcat容器上加载的servlet通过XMMP登录,接收和发送一些消息。

I need to login, receive and send some messages over XMMP with a servlet loaded on tomcat container.

我想知道这种情况是否有任何实施?

I would like to know if there is any implementation already of this situation ?

你的时间: )

推荐答案

我发现smack是XMPP最好的java库。然而,它远非完美的服务器端开发。

I've found smack to be the best available java library for XMPP. It is however, far from perfect for server side development.

特别是你需要尽早考虑你的群集,因为smack连接有很多状态。

In particular you need to think about your clustering early as smack connections hold alot of state.

api本身非常好,但连接和发送消息非常简单,文档很不错。查看

The api itself is very nice however, it's pretty trivial to connect and send messages and the documentation is decent. check it out http://www.igniterealtime.org/projects/smack/

这篇关于如何在像tomcat这样的容器中创建XMPP客户端?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-24 07:30