-
1. Re: Making one WAR depend on another
ctomc Sep 24, 2014 7:43 AM (in response to atchijov-vgw)No, that will just ensure the order of deployment so FOO.war is always loaded before BAR.war.
for accessing its classes you should add jboss-deployment-structure.xml and reference it there as well.
-
2. Re: Making one WAR depend on another
atchijov-vgw Sep 24, 2014 7:56 AM (in response to ctomc)ctomc thanks for quick answer. Something like this?
<?xml version="1.0"?>
<jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<deployment>
<dependencies>
<module name="deployment.FOO.war" export="true"/>
</dependencies>
</deployment>
</jboss-deployment-structure>
Will it work if I just deploy these two WARs (FOO and BAR) independently or must they be part of the same EAR?
-
3. Re: Making one WAR depend on another
atchijov-vgw Sep 24, 2014 10:35 AM (in response to atchijov-vgw)ctomc hmm... it sort of works... I can use classes defined in FOO.war... but I can not @Inject anything . Is there way to @Inject beans defined in FOO.war into code in BAR.war?