[英]Embed openfire in a spring java application
是否可以在Spring Java應用程序中嵌入明火或任何xmpp服務器?
您是否想說要在Web應用程序中嵌入openfire,該應用程序還可以包含Spring或任何其他框架。
您可以將Openfire嵌入任何Web應用程序中,只需為-DopenfireHome="C:\\ChatServer\\openfire"
設置系統屬性,例如: -DopenfireHome="C:\\ChatServer\\openfire"
。 另外,您還必須從應用程序本身啟動openfire。 即openfire服務器應在獨立模式下工作。 要啟動openfire服務器,請創建1 ServletContextListener,在該調用中ServerStarter.main(null);
此代碼將以獨立模式啟動服務器。
tigase,是更好的選擇。
您可以在Java中使用工作表。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.