Something I&#39;ve been thinking about for a while now is the mapping APIs used by Seam JMS.� Currently, you write an interface to define routes used by JMS events.� This requires a bit of extra code that I&#39;m not a big fan of.� What I was thinking was put an extra annotation on either the injection point of the event or the observer method.� The idea is that the annotation would include all of the destination configuration necessary.� For example:<br>
<br>@Inject @JMS(&quot;jms/QueueOne&quot;,&quot;jms/QueueTwo&quot;,&quot;jms/QueueThree&quot;) Event&lt;MyType&gt; myTypeEvent;<br><br>@JMS(&quot;jms/MyTopic&quot;)<br>public void handleMessages(@Observes Long longsInTopic) {<br>
<br>....<br><br>}<br><br>The issues I see, since essentially I have to create an extra observer/firing pair to support each of these, is how to determine the observed type in the event.� In general, any thoughts? Is it possible to determine the event&#39;s type in this case? If so, does the approach make sense?<br>
<br>- John<br>