[weld-dev] Flat Deployment mode & beans.xml

John D. Ament john.d.ament at gmail.com
Mon Jan 15 07:34:59 EST 2018


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 <manovotn at redhat.com> 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" <manovotn at redhat.com>
> > To: "John D. Ament" <john.d.ament at gmail.com>
> > Cc: "Weld" <weld-dev at lists.jboss.org>
> > 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" <john.d.ament at gmail.com>
> > > To: "Weld" <weld-dev at lists.jboss.org>
> > > 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
> > > weld-dev at lists.jboss.org
> > > https://lists.jboss.org/mailman/listinfo/weld-dev
> > _______________________________________________
> > weld-dev mailing list
> > weld-dev at lists.jboss.org
> > https://lists.jboss.org/mailman/listinfo/weld-dev
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/weld-dev/attachments/20180115/03a7001f/attachment.html 


More information about the weld-dev mailing list