Pete, Mark,<br><br>So I get there is no single injection point, however it should be the case that every injection point is declared the same way, no?� E.g. they&#39;re the &quot;same&quot; in the sense that the line of code is the same, but different in that they exist in different areas.<br>
<br>John<br><br><div class="gmail_quote">On Wed, Sep 7, 2011 at 8:38 AM, Pete Muir <span dir="ltr">&lt;<a href="mailto:pmuir@redhat.com">pmuir@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;">
For a request scoped bean there is not a single injection point, like there is for dependent beans. Say I have a request scoped bean, Bean A.<br>
<br>
I have two other beans, of any scope, Bean B and Bean C.<br>
<br>
If both beans B and C inject A in the same request, then the injection point for A is both Bean B and Bean C.<br>
<br>
Furthermore, client proxies mean that bean A is instantiated lazily, to solve the circular injection problem, and so has no knowledge of it&#39;s injection point when actually created.<br>
<div><div></div><div class="h5"><br>
On 7 Sep 2011, at 01:10, John D. Ament wrote:<br>
<br>
&gt; CDI Experts<br>
&gt;<br>
&gt; Was wondering if you could help me understand rationale. �In request scoped objects, when you create a producer method that creates request scoped instances, why is there no access to the underlying injection point?<br>

&gt;<br>
&gt; Let&#39;s say that you have a qualifier with a single String value attribute that is nonbinding; let&#39;s say @JmsDestination. �You have the following injection points:<br>
&gt;<br>
&gt; @Inject @JmsDestination(&quot;jms/MyQueue&quot;) MessageProducer queueProducer;<br>
&gt; @Inject @JmsDestination(&quot;jms/MyTopic&quot;) MessageProducer topicProducer;<br>
&gt;<br>
&gt; In this case, two distinct MessageProducers should be injected. �The CDI container should be able to differentiate the two, since they have different values on the qualifier. �However, CDI disallows this since the producer methods used to create them would not have access to the injection point. �If a second injection point is found, CDI should return the same instance.<br>

&gt;<br>
&gt; I hope it doesn&#39;t sound like I&#39;m babbling, but I wanted to put the question out there to see if it&#39;s something that could be addressed.<br>
&gt;<br>
&gt; Regards,<br>
&gt;<br>
&gt; John<br>
</div></div><div><div></div><div class="h5">&gt; _______________________________________________<br>
&gt; cdi-dev mailing list<br>
&gt; <a href="mailto:cdi-dev@lists.jboss.org">cdi-dev@lists.jboss.org</a><br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/cdi-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/cdi-dev</a><br>
<br>
</div></div></blockquote></div><br>