- Create (if it doesn't exist) a
jboss-all.xmlfile in the
app.earis the application archive that depends on another application archive to be deployed before it is.
- Make a
jboss-deployment-dependenciesentry in this file as shown below. Note that in the listing below,
framework.earis the dependency application archive that should be deployed before
app.earapplication archive is.
<dependency name="framework.ear" />
Thank you Jindal for the quick response.
Do we have any way we can achieve the same by configuring out side the application bundle , i mean to say make some configuration in the wildfly.
WildFly start all applications based on the dependencies.
What you might do is use managed deployments (use CLI to deploy instead of drop the archive into deployments folder) and use deployment overlay for each application to add the jboss-all.xml with CLI to not change the application.
Another way would be to trigger the deployments manually after starting the server via CLI commands.