Hey gents (&amp;lasses, if any exist on the list)<br><br>I wanted to raise a question on something I&#39;m working on for the JMS 2.0 EG.  JMS has a MessageSelector feature that allows a client to control what messages come in to the client consumer.  I&#39;m wondering how possible it would be to standardize on a query selector type of annotation, where attributes are evaluated compared to values.  The idea would be to limit what observer methods get hit based on matches in this query selector annotation.  Here&#39;s an example:<br>
<br>public void observeSomeObjects(@Observes @MessageSelector(&quot;loaded = true&quot;) MyBean mb) {<br>...<br>}<br><br>where:<br><br>public class MyBean {<br>@JmsProperty<br>private boolean loaded;<br>@JmsPayload<br>private String data;<br>
<br>//getters and setters...<br>}<br><br>so when the loaded property is true, and an event is fired, then this observer is called.  however, when false, this observer is not invoked.<br><br>From thinking about it a bit, I was thinking that an Interceptor should do it, but wanted to get your opinions if it was something that could be standardized (potentially in CDI 1.1) rather than specific to JMS.<br>
<br>Opinions?  Comments?<br><br>Thanks,<br><br>John<br>