How to make a XMPP client in a container like tomcat?

こ雲淡風輕ζ 提交于 2019-12-24 19:09:52

问题


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 ?

thx for ur time :)


回答1:


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

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

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/




回答2:


You can use Smack library or Mule ESB XMPP transport built on top of it. Whether it is a servlet or standalone application doesn't matter (at least when you are a client).



来源:https://stackoverflow.com/questions/4947818/how-to-make-a-xmpp-client-in-a-container-like-tomcat

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!