Jboss订单加载问题

发布于 2024-09-28 08:11:26 字数 306 浏览 1 评论 0原文

想象一下我们有两场战争需要部署。第一场战争应该将一些数据加载到 JCR 存储库或任何其他存储中。第二次战争使用第一次战争在存储中加载的数据。

现在我们遇到了第一次战争成功部署的情况,但它正处于初始化过程(加载数据)的中间。第二次战争开始部署。所以有一个错误。

是否有任何配置可以定义第二次战争部署的时间。我的意思是jboss配置。

我想问题已经很清楚了。现在在生产中,我们有一场战争(Apache sling)将 JCR 模式(捆绑包)部署到存储库中,第二场战争开始使用它。

也许有人有类似的问题并且可以帮助我?

谢谢

Imagine we have 2 wars to deploy. First war should load some data into JCR repository, or any other storage. Second war uses data that is loaded by first war in storage.

Now we have situation when first war is successfully deployed, but it is in the middle of initialization process(loading data). Second war is starting to deploy. So have have an error.

Is there any config where we can define time after which second war should be deployed. I mean jboss config.

I guess the problem is clear. Now in production we have one war (Apache sling) that deploy JCR schema(bundle) into repository, and second war starts working with it.

Maybe somebody had similar issue and could help me?

Thx

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

七度光 2024-10-05 08:11:26

一种可能的解决方案是第二次战争包含 ServletContextListener 其 contextInitialized( ) 方法等待,直到第一次战争准备好使用。

One possible solution would be for the second war to contain a ServletContextListener whose contextInitialized() method waits until the first war is ready for use.

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