将多个 JCR 存储库连接到一个数据库(并保持更新)
我现在有点陷入困境,因为我不知道我的问题是否可以解决。
我有一个数据库(MySQL),其中存储了 JCR 存储库。
其次,我有两个共享此数据的网络应用程序(编辑/实时)。 Live 被设计为只读,因此在并发性方面它可以(真的??)被视为保存。
我的问题是,只要不修改现有节点,一切都会正常运行。如果现有节点被更改、保存、会话关闭,并且我在“实时”端显示该节点内容,它仍然是旧内容。在“编辑”方面一切都好。
问题似乎是 JCR (Jackrabbit) 无法获取底层数据库的更改并提供缓存内容。
我的问题是:这个问题可以解决吗?如果可以,需要采取哪些步骤?
我希望我能解释我的问题,以便任何人都可以暗示我。
预先非常感谢, 弗洛
I am a little bit stuck in the moment because I don't know if my problem is solvable at all.
I have one database (MySQL) where a JCR repo is stored.
Secondly do I have two webapps (edit/live) that share this data. Live is designed to read only, so it can (really??) be considered save regarding concurrency.
My problem is that everything works well as long as no existing node is modified. If an existing node is changed, saved, session closed and I display that node content on the "live"-side it's still the old content. On the "edit"-side it's all ok.
The problem seems that JCR (Jackrabbit) doesn't get the changes on the underlying database and serves cached content.
My question is: Is that problem solvable and when yes what steps are needed?
I hope I could explain my problem so anyone could hint me on this.
Thanks a lot in advance,
flo
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好的。问题解决了。神奇的词是聚类。
在每个 JCR 存储库实例上配置集群后,一切正常。
有关更多信息:http://wiki.apache.org/jackrabbit/Clustering
Ok. Problem solved. The magic word is clustering.
After configuring clusters on each JCR repository instance everything works fine.
For further information: http://wiki.apache.org/jackrabbit/Clustering