<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;" dir="ltr">
<p>I'm a bit confused. &nbsp;When you do disableDiscovery() does that leave discovery on for other archives in the classpath?</p>
<div id="Signature">
<div id="divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; background-color:#FFFFFF; font-family:Calibri,Arial,Helvetica,sans-serif">
<div style="color:rgb(33,33,33); font-size:15px; margin:0px"><br>
</div>
<p></p>
</div>
</div>
<br>
<br>
<div style="color: rgb(0, 0, 0);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> Laird Nelson &lt;ljnelson@gmail.com&gt;<br>
<b>Sent:</b> Wednesday, March 22, 2017 11:51 AM<br>
<b>To:</b> Martin Kouba; John Ament; cdi-dev<br>
<b>Subject:</b> Re: [cdi-dev] Bean discovery question</font>
<div>&nbsp;</div>
</div>
<div>
<div dir="ltr">
<div class="gmail_quote">
<div dir="ltr">On Wed, Mar 22, 2017 at 4:17 AM Martin Kouba &lt;<a href="mailto:mkouba@redhat.com">mkouba@redhat.com</a>&gt; wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
&gt; That project's META-INF/beans.xml has bean discovery set to none<br class="gmail_msg">
&gt; (<a href="https://github.com/ljnelson/microbean-main/blob/master/src/main/resources/META-INF/beans.xml#L7" rel="noreferrer" class="gmail_msg" target="_blank">https://github.com/ljnelson/microbean-main/blob/master/src/main/resources/META-INF/beans.xml#L7</a>),<br class="gmail_msg">
&gt; since there are no beans in that bean archive (it houses only the main<br class="gmail_msg">
&gt; class).&nbsp; John indicated that this was likely the source of the problem:<br class="gmail_msg">
<br class="gmail_msg">
I don't think this is the problem. In Weld SE bean archive isolation is<br class="gmail_msg">
enabled by default. Ie. for<br class="gmail_msg">
<a href="https://github.com/ljnelson/microbean-maven-cdi/blob/master/src/main/java/org/microbean/maven/cdi/MavenExtension.java" rel="noreferrer" class="gmail_msg" target="_blank">https://github.com/ljnelson/microbean-maven-cdi/blob/master/src/main/java/org/microbean/maven/cdi/MavenExtension.java</a><br class="gmail_msg">
the beans.xml is<br class="gmail_msg">
<a href="https://github.com/ljnelson/microbean-maven-cdi/blob/master/src/main/resources/META-INF/beans.xml" rel="noreferrer" class="gmail_msg" target="_blank">https://github.com/ljnelson/microbean-maven-cdi/blob/master/src/main/resources/META-INF/beans.xml</a><br class="gmail_msg">
</blockquote>
<div><br>
</div>
<div>Good; that confirms what I expected.</div>
<div>&nbsp;</div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
&gt; Perhaps I have misunderstood bean discovery: I thought that the<br class="gmail_msg">
&gt; discovery mode applied to the bean archive in question alone, not to an<br class="gmail_msg">
&gt; aggregate.<br class="gmail_msg">
<br class="gmail_msg">
What do you mean with &quot;aggregate&quot;? Bean discovery mode is applied to a<br class="gmail_msg">
specific bean archive only.<br class="gmail_msg">
</blockquote>
<div><br>
</div>
<div>What I meant was: <i>if</i> I had misunderstood bean discovery, which I have not, then perhaps something about that bean archive's &quot;none&quot; mode was affecting other bean archives.&nbsp; But I did not misunderstand bean discovery, so this is moot.</div>
<div><br>
</div>
<div>Best,</div>
<div>Laird</div>
</div>
</div>
</div>
</div>
</div>
<hr>
NOTICE: This e-mail message and any attachments may contain confidential, proprietary, and/or privileged information which should be treated accordingly. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this
 message, and destroy all physical and electronic copies. Thank you.
</body>
</html>