All,<div><br></div><div>I&#39;d like some feedback on how I&#39;ve implemented JMS destination injection.  For reference see the design notes at <a href="http://sfwk.org/Seam3/JMSModule">http://sfwk.org/Seam3/JMSModule</a>.  </div>
<div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; "><br></span></div><div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; ">Generic destination injection is realized by decorating the AnnotatedTypes which define any transitive annotations of @JmsDestination.  The annotations are replaced with the defined @JmsDestination and a simple pair of producer methods handle their production (</span><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; "><a href="http://github.com/jganoff/seam3-jms/blob/master/src/main/java/org/jboss/seam/jms/impl/inject/DestinationProducer.java" target="_blank" style="color: rgb(64, 100, 128); ">http://github.com/jganoff/seam3-jms/blob/master/src/main/java/org/jboss/seam/jms/impl/inject/DestinationProducer.java</a></span><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; ">). </span><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; "></span><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; ">Although this works it removes the annotations.  I&#39;d much prefer another solution which leaves all annotations intact and somehow provides producers for each (if not already defined).</span></div>
<div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; "><br></span></div><div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; ">Any thoughts on the matter would be greatly appreciated.  Am I correct in assuming the original annotations should be preserved?</span></div>
<div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; "><br></span></div><div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; ">Code base is currently on github until the svn repo is set up: <span class="Apple-style-span" style="border-collapse: separate; font-family: arial; font-size: small; "><a href="http://github.com/jganoff/seam3-jms">http://github.com/jganoff/seam3-jms</a>  </span></span></div>
<div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; "><span class="Apple-style-span" style="border-collapse: separate; font-family: arial; font-size: small; ">Relevant test cases are here: <a href="http://github.com/jganoff/seam3-jms/tree/master/src/test/java/org/jboss/seam/jms/test/inject/">http://github.com/jganoff/seam3-jms/tree/master/src/test/java/org/jboss/seam/jms/test/inject/</a></span></span></div>
<div><br></div><div><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; "><span class="Apple-style-span" style="border-collapse: separate; font-family: arial; font-size: small; ">Thanks!</span></span></div>
<div><br></div><div>-- <br>Jordan Ganoff<br>
</div>