How to control the order of deployed applications on JBoss EAP 7 / 6

Solution Verified - Updated -

Issue

  • On JBoss Enterprise Application Platform 6 it difficult to control the order in which applications, packed in different ear-files, are deployed when the server is started.
  • We have multiple ear archives that need to be deployed in strict order, and the deployment order need to be remembered after a restart. How could this be done ?
  • How to deploy the application from the admin-console when one application is dependent on other application?
  • Can EAP6 handle multiple deployments simultaneously? Or would deployment requests be queued and executed serially?
  • A "war" file should be deployed after the two "ear" files.
  • We have around 13 services that we are deploying to JBoss. All of these services are WAR's. We need to define an order of startup for these services. Additionally, all of these services are dependent on a resource adapter starting first. Can this be done?
  • How to put the order of deployment on different file types ?
  • We have got an application (abc.ear) that depends on a third party resource adapter (XYZ.rar).
    How to reliably configure class loading dependency from abc.ear to XYZ.rar ?
    We have other EARs depending on "abc.ear". Those do already use "ejb-ref" in their deployment descriptors and deployment activation is deferred until "abc.ear" is ready.
    Within "abc.ear!abc-ejb.jar" we have "resource-ref"s pointing to connection factories set up and served by "XYZ.rar", hence the module dependency for being able to use those classes.
  • In one of our application (A ), It has dependency on another application (B). So B application must be deployed in the JBOSS container before application A. But sometime, the contextpath for Application B is not loaded before Application A. In this case, our jboss server fails.
  • Is it possible to control the order of the deploying the application on different JBoss nodes?
Node1 has the applications A and B.
Node2 has the applications C and D.

Application C depends on A and application D depends on B.

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6.x
    • 7.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content