-
1. Re: How to specify the deployment order for EAR irrespective of version in wildfly
abhijithumbe Jun 3, 2018 10:39 PM (in response to aishwaryajeevarathinam)Approach you are following is correct, we have to use exact war/jar file name in <dependency ..> tag, we cant use wild characters in this tag. There is one more approach, you can define ear dependency on EJB's deployed(if any) by 'zrpe.mirev.ear-default-5.2.0-SNAPSHOT.ear' file through ejb refs in ejb-jar.xml or web.xml
====
<ejb-jar 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/ejb-jar_3_0.xsd"
version="3.0">
<enterprise-beans>
<session>
<ejb-name>TestBean</ejb-name>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
<ejb-local-ref>
<ejb-ref-name>ejb/StatelessBean2Remote</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<local>com.jboss.examples.ejb3.StatelessLocal</local>
<ejb-link>StatelessBean2</ejb-link>
</ejb-local-ref>
</session>
</enterprise-beans>
</ejb-jar>
====