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">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.<div>
<br><div class="gmail_quote">On Thu, Apr 8, 2010 at 7: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;">
Are you using Weld 1.0.1 - I fixed this there IIRC.<br>
<div><div></div><div class="h5"><br>
On 8 Apr 2010, at 02:45, Jordan Ganoff wrote:<br>
<br>
&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;<br>
&gt; Here&#39;s the code:<br>
&gt;<br>
&gt; @Inject @Any Instance&lt;Topic&gt; anyTopic;<br>
&gt;<br>
&gt; @Produces @JmsDestination<br>
&gt; public TopicPublisher createTopicProducer(InjectionPoint ip, Session s) throws JMSException<br>
&gt; {<br>
&gt;    Topic t = anyTopic.select(ip.getAnnotated().getAnnotation(JmsDestination.class)).get();<br>
&gt;    return TopicPublisher.class.cast(s.createProducer(t));<br>
&gt; }<br>
&gt;<br>
&gt; ...<br>
&gt;<br>
&gt; @Produces<br>
&gt; @JmsDestination<br>
&gt; public Topic getTopic(InjectionPoint ip, @Module Context c) throws NamingException<br>
&gt; {<br>
&gt;    JmsDestination d = ip.getAnnotated().getAnnotation(JmsDestination.class);<br>
&gt;    return (Topic) c.lookup(d.jndiName());<br>
&gt; }<br>
&gt;<br>
&gt; Thanks in advance.<br>
&gt;<br>
&gt; P.S. Actual code links:<br>
&gt;<br>
&gt; <a href="http://gist.github.com/359673" target="_blank">http://gist.github.com/359673</a><br>
&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; --<br>
&gt; Jordan Ganoff<br>
</div></div>&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>
</blockquote></div><br><br clear="all"><br>-- <br>Jordan Ganoff<br>
</div>