Thanks Pete.  InjectionPoint.getQualifers() works like a charm.<br><br><div class="gmail_quote">On Thu, Apr 8, 2010 at 11:05 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;">Ah, I see the problem, you are calling ip.*getAnnotated* - this (IMO correctly) does not reflect the qualifiers applied via select(), but the annotated object. Use ip.getQualifiers() instead.<br>

<div><div></div><div class="h5"><br>
<br>
On 8 Apr 2010, at 14:13, Pete Muir wrote:<br>
<br>
&gt; I mean, can you file a JIRA and put the code below in it?<br>
&gt;<br>
&gt; On 8 Apr 2010, at 14:12, Pete Muir wrote:<br>
&gt;<br>
&gt;&gt; Ok, can you write a test case for this?<br>
&gt;&gt;<br>
&gt;&gt; On 8 Apr 2010, at 13:23, Jordan Ganoff wrote:<br>
&gt;&gt;<br>
&gt;&gt;&gt; I&#39;m using Weld 1.0.1 Final.  You fixed a very similar bug: <a href="https://jira.jboss.org/jira/browse/WELD-438" target="_blank">https://jira.jboss.org/jira/browse/WELD-438</a>.  From your comment on the JIRA it sounded like the selected annotations were fixed as well but that&#39;s not the behavior I&#39;m seeing.<br>

&gt;&gt;&gt;<br>
&gt;&gt;&gt; On Thu, Apr 8, 2010 at 7:38 AM, Pete Muir &lt;<a href="mailto:pmuir@redhat.com">pmuir@redhat.com</a>&gt; wrote:<br>
&gt;&gt;&gt; Are you using Weld 1.0.1 - I fixed this there IIRC.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; On 8 Apr 2010, at 02:45, Jordan Ganoff wrote:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; I was testing out a simple idea for another JMS injection type and ran into an issue with Instance.get() and additional select annotations.  The InjectionPoint of the producer lacked the additional selected annotations.  I&#39;m trying to create a TopicProducer and need to dynamically inject a topic.  When the topic producer is invoked the InjectionPoint does not contain the JmsDestination (the annotations are only @Inject and @Any, which seems like @Inject shouldn&#39;t be there either).  Is there a better way to do this?<br>

&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Here&#39;s the code:<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; @Inject @Any Instance&lt;Topic&gt; anyTopic;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; @Produces @JmsDestination<br>
&gt;&gt;&gt;&gt; public TopicPublisher createTopicProducer(InjectionPoint ip, Session s) throws JMSException<br>
&gt;&gt;&gt;&gt; {<br>
&gt;&gt;&gt;&gt;  Topic t = anyTopic.select(ip.getAnnotated().getAnnotation(JmsDestination.class)).get();<br>
&gt;&gt;&gt;&gt;  return TopicPublisher.class.cast(s.createProducer(t));<br>
&gt;&gt;&gt;&gt; }<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; ...<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; @Produces<br>
&gt;&gt;&gt;&gt; @JmsDestination<br>
&gt;&gt;&gt;&gt; public Topic getTopic(InjectionPoint ip, @Module Context c) throws NamingException<br>
&gt;&gt;&gt;&gt; {<br>
&gt;&gt;&gt;&gt;  JmsDestination d = ip.getAnnotated().getAnnotation(JmsDestination.class);<br>
&gt;&gt;&gt;&gt;  return (Topic) c.lookup(d.jndiName());<br>
&gt;&gt;&gt;&gt; }<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Thanks in advance.<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; P.S. Actual code links:<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; <a href="http://gist.github.com/359673" target="_blank">http://gist.github.com/359673</a><br>
&gt;&gt;&gt;&gt; <a href="http://github.com/jganoff/seam3-jms/blob/master/src/main/java/org/jboss/seam/jms/impl/inject/DestinationProducer.java" target="_blank">http://github.com/jganoff/seam3-jms/blob/master/src/main/java/org/jboss/seam/jms/impl/inject/DestinationProducer.java</a><br>

&gt;&gt;&gt;&gt; --<br>
&gt;&gt;&gt;&gt; Jordan Ganoff<br>
&gt;&gt;&gt;&gt; _______________________________________________<br>
&gt;&gt;&gt;&gt; weld-dev mailing list<br>
&gt;&gt;&gt;&gt; <a href="mailto:weld-dev@lists.jboss.org">weld-dev@lists.jboss.org</a><br>
&gt;&gt;&gt;&gt; <a href="https://lists.jboss.org/mailman/listinfo/weld-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/weld-dev</a><br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; --<br>
&gt;&gt;&gt; Jordan Ganoff<br>
&gt;&gt;<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; weld-dev mailing list<br>
&gt; <a href="mailto:weld-dev@lists.jboss.org">weld-dev@lists.jboss.org</a><br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/weld-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/weld-dev</a><br>
<br>
<br>
_______________________________________________<br>
weld-dev mailing list<br>
<a href="mailto:weld-dev@lists.jboss.org">weld-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/weld-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/weld-dev</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Jordan Ganoff<br>