Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/374.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在SpringJava应用程序中嵌入openfire_Java_Spring_Xmpp_Openfire_Xmppframework - Fatal编程技术网

在SpringJava应用程序中嵌入openfire

在SpringJava应用程序中嵌入openfire,java,spring,xmpp,openfire,xmppframework,Java,Spring,Xmpp,Openfire,Xmppframework,是否可以在spring java应用程序中嵌入openfire或任何xmpp服务器?如果您想说要在web应用程序中嵌入openfire,该应用程序还可以包含spring或任何其他框架 您可以在任何web应用程序中嵌入Openfire,只需为openfireHome设置系统属性,例如: -DopenfireHome=“C:\ChatServer\openfire”。 您还必须从应用程序本身启动openfire。i、 e.openfire服务器应在独立模式下工作。 要启动openfire serve

是否可以在spring java应用程序中嵌入openfire或任何xmpp服务器?

如果您想说要在web应用程序中嵌入openfire,该应用程序还可以包含spring或任何其他框架

您可以在任何web应用程序中嵌入Openfire,只需为openfireHome设置系统属性,例如:
-DopenfireHome=“C:\ChatServer\openfire”
。 您还必须从应用程序本身启动openfire。i、 e.openfire服务器应在独立模式下工作。 要启动openfire server,请在该调用中创建1个ServletContextListener
ServerStarter.main(null)

此代码将以独立模式启动服务器。

tigase是更好的选择


您可以在java中使用工作表单。

感谢@Andro selva编辑答案。我是此门户网站的新手,因此需要一些时间才能正确设置答案的格式:-)