Discussion:
JMS selector not working in Studio 3.2.1
Global Variable
2012-07-02 23:46:24 UTC
Permalink
I have the same issue... I am on MULE standalone 3.3 (released).
<br /><br />
I have a flow which sets JMS properties in a JMS outbound endpoint:
<br />
<code>
<br />
&lt;flow&gt;
<br />
&lt;jms:outbound-endpoint queue=&quot;XXX&quot; exchange-pattern=&quot;request-response&quot; connector-ref=&quot;jmsConnector&quot;&gt;
<br />
&lt;message-properties-transformer&gt;
<br />
&lt;add-message-property key=&quot;operation&quot; value=&quot;destroySession&quot;&#47;&gt;
<br />
&lt;&#47;message-properties-transformer&gt;
<br />
&lt;&#47;jms:outbound-endpoint&gt;
<br />
&#46;&#46;&#46;
<br />
&#46;&#46;&#46;
<br />
&lt;&#47;flow&gt;
<br />
</code>
<br /><br />
When I go to my ActiveMQ queues, I see the message and it has the property set correctly.
<br /><br />
Now I have another JMS inbound-endpoint which has a corresponding selector defined:
<br />
<code>
<br />
&lt;flow&gt;
<br />
&lt;jms:inbound-endpoint queue=&quot;XXX&quot; exchange-pattern=&quot;request-response&quot;&gt;
<br />
&lt;jms:selector expression=&quot;operation=destroySession&quot; &#47;&gt;
<br />
&lt;&#47;jms:inbound-endpoint&gt;
<br />
&lt;&#47;flow&gt;
<br />
</code>
<br /><br />
Again, in ActiveMQ Queues I see that the consumers have the right selector property. But the messages keep on accumulating, never get collected.
<br /><br />
My question is:
<br />
1. Is this the right pattern to set JMS messages properties and having consumers filter the messages based on properties?
<br />
2. If not, what is the right pattern?

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email
Global Variable
2012-07-03 19:38:23 UTC
Permalink
Your reply to this thread will be appreciated!

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email
Global Variable
2012-07-03 19:38:27 UTC
Permalink
Your reply to this thread will be appreciated!

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

Loading...