You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by Jagath <ja...@yahoo.com> on 2009/01/22 19:36:10 UTC
ActiveMQ - XPATH Selectors - Unable to make it work
Hi,
I am using ActiveMQ 5.2. I am unable to make use of XPATH selectors.
Sample XML message: <?xml version='1.0' encoding='UTF-8'?><books><book
lang='en'>ABC</book></books>
Topic where message is posted: VirtualTopic.TestXpath
Queue where message is listened to: Consumer.Sample.VirtualTopic.TestXpath
XPATH selector specified: XPATH '//books//book[@lang=''en'']'
Protocol: OpenWire
I read a different http://www.nabble.com/XPATH-selectors--td14018321.html
post on the same topic and added the following necessary JAR files to the
classpath apart from activemq-all-5.2.0.jar:
- xalan.jar
- xercesImpl.jar
- xml-apis.jar
I have tried a lot of different combination for the XPATH selector but still
the consumer is not getting any messages.
Could someone please help if you have used XPATH selectors and made it to
work?
Thanks and Regards,
Jagath
--
View this message in context: http://www.nabble.com/ActiveMQ---XPATH-Selectors---Unable-to-make-it-work-tp21610375p21610375.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: ActiveMQ - XPATH Selectors - Unable to make it work
Posted by Jagath <ja...@yahoo.com>.
Thanks Dejan. Here's the JIRA issue link.
https://issues.apache.org/activemq/browse/AMQ-2084 ActiveMQ - XPATH
Selectors - Unable to make it work
Thanks and Regards,
Jagath
Dejan Bosanac wrote:
>
> Hi,
>
> can you raise a Jira issue with this test attached, so we can handle it
> later?
>
> Thanks
> --
> Dejan Bosanac
>
> Open Source Integration - http://fusesource.com/
> ActiveMQ in Action - http://www.manning.com/snyder/
> Blog - http://www.nighttale.net
>
>
--
View this message in context: http://www.nabble.com/ActiveMQ---XPATH-Selectors---Unable-to-make-it-work-tp21610375p21662186.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: ActiveMQ - XPATH Selectors - Unable to make it work
Posted by Dejan Bosanac <de...@nighttale.net>.
Hi,
can you raise a Jira issue with this test attached, so we can handle it
later?
Thanks
--
Dejan Bosanac
Open Source Integration - http://fusesource.com/
ActiveMQ in Action - http://www.manning.com/snyder/
Blog - http://www.nighttale.net
On Fri, Jan 23, 2009 at 6:03 PM, Jagath <ja...@yahoo.com> wrote:
>
> - Yes, I am consuming from the physical queue of the virtual topic to which
> I
> am publishing.
> - I receive all the messages from the same physical queue if I don't use
> any
> selectors.
>
> Please find attached the test class (TestXPathSelectors.java) for
> reference.
>
> Jagath
>
>
> Dejan Bosanac wrote:
> >
> > Hi,
> >
> > this selector is fine (just tested it). I guess the problem is in the
> > virtual topics. Are you sure you are consuming for the right place? Do
> you
> > receive a message if you don't have selector?
> >
> > Cheers
> > --
> > Dejan Bosanac
> >
> >
> http://www.nabble.com/file/p21628498/TestXPathSelectors.java
> TestXPathSelectors.java
> --
> View this message in context:
> http://www.nabble.com/ActiveMQ---XPATH-Selectors---Unable-to-make-it-work-tp21610375p21628498.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
>
Re: ActiveMQ - XPATH Selectors - Unable to make it work
Posted by Jagath <ja...@yahoo.com>.
- Yes, I am consuming from the physical queue of the virtual topic to which I
am publishing.
- I receive all the messages from the same physical queue if I don't use any
selectors.
Please find attached the test class (TestXPathSelectors.java) for reference.
Jagath
Dejan Bosanac wrote:
>
> Hi,
>
> this selector is fine (just tested it). I guess the problem is in the
> virtual topics. Are you sure you are consuming for the right place? Do you
> receive a message if you don't have selector?
>
> Cheers
> --
> Dejan Bosanac
>
>
http://www.nabble.com/file/p21628498/TestXPathSelectors.java
TestXPathSelectors.java
--
View this message in context: http://www.nabble.com/ActiveMQ---XPATH-Selectors---Unable-to-make-it-work-tp21610375p21628498.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: ActiveMQ - XPATH Selectors - Unable to make it work
Posted by Dejan Bosanac <de...@nighttale.net>.
Hi,
this selector is fine (just tested it). I guess the problem is in the
virtual topics. Are you sure you are consuming for the right place? Do you
receive a message if you don't have selector?
Cheers
--
Dejan Bosanac
Open Source Integration - http://fusesource.com/
ActiveMQ in Action - http://www.manning.com/snyder/
Blog - http://www.nighttale.net
On Thu, Jan 22, 2009 at 7:36 PM, Jagath <ja...@yahoo.com> wrote:
>
> Hi,
>
> I am using ActiveMQ 5.2. I am unable to make use of XPATH selectors.
>
> Sample XML message: <?xml version='1.0' encoding='UTF-8'?><books><book
> lang='en'>ABC</book></books>
> Topic where message is posted: VirtualTopic.TestXpath
> Queue where message is listened to: Consumer.Sample.VirtualTopic.TestXpath
> XPATH selector specified: XPATH '//books//book[@lang=''en'']'
> Protocol: OpenWire
>
> I read a different http://www.nabble.com/XPATH-selectors--td14018321.html
> post on the same topic and added the following necessary JAR files to the
> classpath apart from activemq-all-5.2.0.jar:
> - xalan.jar
> - xercesImpl.jar
> - xml-apis.jar
>
> I have tried a lot of different combination for the XPATH selector but
> still
> the consumer is not getting any messages.
>
> Could someone please help if you have used XPATH selectors and made it to
> work?
>
> Thanks and Regards,
> Jagath
> --
> View this message in context:
> http://www.nabble.com/ActiveMQ---XPATH-Selectors---Unable-to-make-it-work-tp21610375p21610375.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
>