Your configuration just configures classloading dependances not the order of deployment
for that you need to add jboss-all.xml
thanks for reply
We do not have two .ear /
The problem is that we need to initialize some background process ( config, audit .....) before the app1.war and app2.war are deploy,
execute our background process ( config, audit .....) deploying startup.sar, then after it is done then start deploying app1.war then app2.war
Could you help us ?
it doesn't matter if you have ear, sar, war, jar, rar, ... deployment the principal is the same.
Hi Tomaz thanks for replay
We did the config below and did not works,
<dependency name="startup.sar" />
We can not find jboss-all.xml on this list
we are missing something ?
Thanks for the help
You should be able to use <initialize-in-order>true</initialize-in-order> in your application.xml to force it to initialise the sub-deployments in the order listed in that file. That way an @Startup @Singleton EJB or similar kind of thing would be initialised before any later modules are.