1 Reply Latest reply on Jun 21, 2011 10:56 PM by Joshua Davis

    CDI beans for multiple WARs in an EAR

    Craig  Newbie

      Hi I have an EAR file that contains 2 WARs


      Only the beans in 1 war are ever loaded. Both have a beans.xml in their WEB-INF folders


      1 war works fine, the other doesn't.


      I can then remove the beans.xml from the war that works, only leaving beans.xml in the one that previously didn't work, restart and now this war works fine.


      They both work independently, but not together.


      Can I have multiple war files (using CDI) in an ear ?


      Im using jboss6


      Many thanks for you help


      Craig