How to change the deployment order of EAR files which contains SAR files.
Issue
- There is a way to order sub-deployments by setting
initialize-in-order
to true inapplication.xml
, but SAR file is not a Java EE specification. How to make the SAR file to load before any other sub-deployment in the ear. - Deployment order is ignored while using the war file and sar file in application.xml file in JBoss EAP 6.
<?xml version="1.0" encoding="UTF-8"?>
<application xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/application_6.xsd" version="6">
<initialize-in-order>true</initialize-in-order>
<module>
<web>
<web-uri>abc.war</web-uri>
<context-root>abc</context-root>
</web>
</module>
<module>
<ejb>Demo.sar</ejb>
</module>
</application>
- How to control the order of deployment when using SAR and WAR file in JBoss EAP 6?
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 6.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.