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
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.
精彩评论