2 Replies Latest reply on Nov 19, 2013 7:59 AM by Pal Konyves

    Alternatives configuration in multiple CDI jars

    Pal Konyves Newbie



      Last time I looked, in CDI 1.0 it was not possible to do alternatives configuration from one "master beans.xml", because the scope of the beans.xml is the jar that contains it. This is a problem, when I have a project with multiple CDI jars, and want to run unit test with alternative beans. Building the application for testing would require to modify all the beans.xml that contains alternative beans. This is painful.


      How can I achieve having a "master beans.xml" for my application? Do you know any CDI extensions that helps me with this in CDI 1.0? How is it working in CDI 1.1?

      Thank you very much!