Yes, that test is basically why I'm asking the question. Also, if I am using implicit bean archives (per the CDI spec, the system flag) and have flat deploymnet mode in Weld, what bean discovery should I be seeing? The result of the merged beans.xml?
John On Mon, Jan 15, 2018 at 2:16 AM Matej Novotny <[email protected]> wrote: > Actually, now that I think of it I was wrong. > You may have a set of JARs in your deployment and you don't want to pick > up beans from all JARs (it might even lead to ambiguous dep for example). > Therefore, beans.xml, even empty one, would be required to mark an archive > which is to be considered a bean archive. > > I also found this test which can be easily fiddled with to verify what I > said above - > https://github.com/weld/core/blob/master/environments/se/tests/src/test/java/org/jboss/weld/environment/se/test/discovery/isolation/IsolationDisabledTest.java > E.g. if you change `bda1` to be a JavaArchive (no beans.xml added), it > will fail with unsatisfied dep. > > Matej > > ----- Original Message ----- > > From: "Matej Novotny" <[email protected]> > > To: "John D. Ament" <[email protected]> > > Cc: "Weld" <[email protected]> > > Sent: Monday, January 15, 2018 8:04:15 AM > > Subject: Re: [weld-dev] Flat Deployment mode & beans.xml > > > > Hi John, > > > > what you say makes sense, there shouldn't be need for multiple beans.xml. > > Does it give you any errors? > > > > Matej > > > > ----- Original Message ----- > > > From: "John D. Ament" <[email protected]> > > > To: "Weld" <[email protected]> > > > Sent: Saturday, January 13, 2018 4:17:35 PM > > > Subject: [weld-dev] Flat Deployment mode & beans.xml > > > > > > Hi, > > > > > > If I'm using Weld SE in a flat deployment mode, is a beans.xml required > > > still > > > in all JARs? I would assume that with the beans.xml's being merged, > any JAR > > > that didn't have a beans.xml would inherit the "merged" one. > > > > > > John > > > > > > _______________________________________________ > > > weld-dev mailing list > > > [email protected] > > > https://lists.jboss.org/mailman/listinfo/weld-dev > > _______________________________________________ > > weld-dev mailing list > > [email protected] > > https://lists.jboss.org/mailman/listinfo/weld-dev > > >
_______________________________________________ weld-dev mailing list [email protected] https://lists.jboss.org/mailman/listinfo/weld-dev
