<div dir="ltr"><div>continued: <br></div>The issue is that when it comes to do the validation, Weld insists all bean names must be unique among all the beans which this extension can see. This extension does not need to use el. What is the point to do the upfront validation? Is it possible to switch off this unique bean name validation for some bdas or only throw an exception when it cannot resolve el successfully?<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jul 22, 2015 at 9:14 AM, Emily Jiang <span dir="ltr">&lt;<a href="mailto:emijiang6@googlemail.com" target="_blank">emijiang6@googlemail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hi Jozef,<br><br></div>The extension I am referred to is jsf extension, FlowBuilderCDIExtension, which registers the bean FlowBuilderFactoryBean. This FlowBuilderFactoryBean tries to get all instances of Flows: <br>@Inject <br>    @Any<br>    private Instance&lt;Flow&gt; flowDefinitions;<br></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jul 22, 2015 at 8:08 AM, Jozef Hartinger <span dir="ltr">&lt;<a href="mailto:jharting@redhat.com" target="_blank">jharting@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Emily,<br>
<br>
can you elaborate a bit more how your extension looks like? If the bean registered by an extension is really shared across wars there should be no ambiguous resolutions.<br>
<br>
Jozef<div><div><br>
<br>
On 21.7.2015 22:35, Emily Jiang wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>
<br>
I have a question on the CDI extension. I would like to define an<br>
extension which is shared among the modules such as multiple war modules<br>
and be able to access all war modules. However, I got the following<br>
error WELD-001414: Bean name is ambiguous. Name echo resolves to beans:<br>
as there are same bean names in multiple wars. Is it possible to switch<br>
off the unique bean name checks for some extensions? Do you have any<br>
suggestions on how to resolve the problem.<br>
--<br>
Thanks<br>
Emily<br>
=================<br>
Emily Jiang<br>
</div></div><a href="mailto:ejiang@apache.org" target="_blank">ejiang@apache.org</a> &lt;mailto:<a href="mailto:ejiang@apache.org" target="_blank">ejiang@apache.org</a>&gt;<br>
<br>
<br>
_______________________________________________<br>
weld-dev mailing list<br>
<a href="mailto:weld-dev@lists.jboss.org" target="_blank">weld-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/weld-dev" rel="noreferrer" target="_blank">https://lists.jboss.org/mailman/listinfo/weld-dev</a><br>
<br>
</blockquote>
</blockquote></div><br><br clear="all"><br>-- <br><div>Thanks<br>Emily<br>=================<br>Emily Jiang<br><a href="mailto:ejiang@apache.org" target="_blank">ejiang@apache.org</a><br></div>
</div>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature">Thanks<br>Emily<br>=================<br>Emily Jiang<br><a href="mailto:ejiang@apache.org" target="_blank">ejiang@apache.org</a><br></div>
</div>