Openfire 自定义数据库

发布于 2024-12-02 01:23:27 字数 339 浏览 3 评论 0原文

我正在使用 Openfire 以及使用 Openfire 服务器资源文件夹中的默认 openfire_mysql.sql 创建的外部 MySQL 数据库。

我想要完成的是让属性持久化发挥作用,如 Smack API 中所述。使用 createAccount(String username, String password, Mapattribute) 存储属性并使用 getAttributes 检索属性

但是,默认的外部数据库设置似乎不适用于保留这些属性,我已经尝试手动添加行,但属性仍然没有保留。

有人以前遇到过这个要求吗?

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

绮筵 2024-12-09 01:23:27

我也想这样做,并浏览了一些 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文