一、配置:
igase-message-archiving源码也有的,工程导进去就可以,init.properties的加配置,
--comp-name-2=message-archive --comp-class-2=tigase.archive.MessageArchiveComponent
message-archive/archive-repo-uri=jdbc:mysql://192.168.10.15:3306/tigasedb2?user=tigase2&password=tigase2&useUnicode=true&characterEncoding=UTF-8&autoCreateUser=true sess-man/plugins-conf/message-archive-xep-0136/component-jid=message-archive@tigase.xxx.com sess-man/plugins-conf/message-archive-xep-0136/auto=true sess-man/plugins-conf/message-archive-xep-0136/default-store-method=body sess-man/plugins-conf/message-archive-xep-0136/required-store-method=body
二、使用message-archiving组件进行消息存储
下载tigase-message-archving组件 官方git下载地址:
git clone https://repository.tigase.org/git/message-archiving.git 细节参看官网文档