How to define dependency between two app1.ear & app1.ear in wildfly 9.0.2

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

How to define dependency between two app1.ear & app1.ear in wildfly 9.0.2

wildflyuser
In my wildfly 9.0.2, i have deployed two ear(app1.ear & app2.ear)
in app1.ear / META-INF/jboss-deployment-structure.xml  how i can define to
have dependency of app2.ear/modules.war/WEB-INF/lib



--
Sent from: http://wildfly-development.1055759.n5.nabble.com/
_______________________________________________
wildfly-dev mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/wildfly-dev
Reply | Threaded
Open this post in threaded view
|

Re: How to define dependency between two app1.ear & app1.ear in wildfly 9.0.2

Jan Kalina
Check https://developer.jboss.org/thread/176211 ;)
In theory it should be:

<?xml version="1.0" encoding="UTF-8"?>
<jboss-deployment-structure>
  <deployment>
    <dependencies>
      <module name="deployment.app2.ear.modules.war" export="true"/>
    </dependencies>
  </deployment>
</jboss-deployment-structure>

Use export=true to ensure the dependency will be available to
subdeployments of the EAR.
Otherwise, you can assign dependencies to individual subdeployments too:

For example, if you have myweb.war subdeployment in app1.ear:

<?xml version="1.0" encoding="UTF-8"?>
<jboss-deployment-structure>
  <sub-deployment name="myweb.war">
    <dependencies>
      <module name="deployment.app2.ear.modules.war"/>
    </dependencies>
  </sub-deployment>
</jboss-deployment-structure>


On Tue, Jun 5, 2018 at 12:26 PM, wildflyuser <[hidden email]> wrote:

> In my wildfly 9.0.2, i have deployed two ear(app1.ear & app2.ear)
> in app1.ear / META-INF/jboss-deployment-structure.xml  how i can define to
> have dependency of app2.ear/modules.war/WEB-INF/lib
>
>
>
> --
> Sent from: http://wildfly-development.1055759.n5.nabble.com/
> _______________________________________________
> wildfly-dev mailing list
> [hidden email]
> https://lists.jboss.org/mailman/listinfo/wildfly-dev
_______________________________________________
wildfly-dev mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/wildfly-dev