mercredi 15 avril 2015

ActiveMQ selector expression with xpath and namespace


Vote count:

0




I need to create jms message filter selectors using xpath with namespace and prefix.


For below xml message/payload this xpath expression XPATH '//test/one/text()=''oneTest''' is working fine to me.



<test>
<one>oneTest</one>
<two>twoTest</two>
</test>


But I am unable write an xpath expression if my xml message has namespace and prefix like below.



<es:EnterpriseMessage
xmlns:es="http://ift.tt/1GJsLIy">
<es:EnterpriseHeader>
<es:MessageId>123</es:MessageId>
</es:EnterpriseHeader>


I need to write a jms filter selector xpath expression with namespace like if MessageId element has '123' then only jms consumer should process the message.


Can some one please let me know how can we write AcitveMQ jms selector expression using xpath with namespace?



asked 3 mins ago







ActiveMQ selector expression with xpath and namespace

Aucun commentaire:

Enregistrer un commentaire