Openfire 自定义数据库
我正在使用 Openfire 以及使用 Openfire 服务器资源文件夹中的默认 openfire_mysql.sql
创建的外部 MySQL 数据库。
我想要完成的是让属性持久化发挥作用,如 Smack API 中所述。使用 createAccount(String username, String password, Map
但是,默认的外部数据库设置似乎不适用于保留这些属性,我已经尝试手动添加行,但属性仍然没有保留。
有人以前遇到过这个要求吗?
I am working with Openfire with external MySQL database created with the default openfire_mysql.sql
from the Openfire server resources folder.
What I am trying to accomplish is to make the attribute persistence work, as described in the Smack API. Attribute stored using createAccount(String username, String password, Map<String, String> attributes)
and retrieved using getAttributes
However it seems that the default external database setup is not up for persisting these attributes, I already tried manually adding the row yet still attributes are not persisted.
Anyone have encountered this requirement before?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我也想这样做,并浏览了一些 openfire 源代码。我相信持久化到数据库的方法仅处理默认 openfire_mysql.sql 文件中写入的字段。您必须将这些新字段修改到源代码中才能覆盖它们。
I would like to do this as well and have looked through some of the openfire sourcecode. I believe the method that persists into the database only handles the fields written in the default openfire_mysql.sql file. You would have to go and modify those new fields into the source code for them to be covered.