XMPP - Spring 集成:spring 应用程序 运行 是否是嵌入式 XMPP 服务器

XMPP - Spring Integration: Does the spring application run an embedded XMPP server

我正在尝试将即时消息集成到我的基于常用 Spring-Maven 堆栈的应用程序中。我遇到的两种可能性是使用原始 Smack (igniterealtime.org) 或寻求 XMPP 的 spring 集成支持(也基于 Smack)。我的问题是; "Is it required to run an XMPP server like openfire alongside or is there a possibility of the XMPP server running embedded within my application running on tomcat?"。该场景的有效方案是什么?谢谢

Smack(因此 Spring Integration XMPP)只是该协议的 API(客户端),您需要了解和配置的是 XmppConnection,特别是 host/port 连接。

要基于这些组件正确应用程序,您不需要 运行 XMPP 服务器。

例如,我们针对常规 Google 聊天测试了 Spring 集成。

所以,是的:Spring 集成不 运行 嵌入式服务器,甚至不需要外部 运行 本地服务器。