Hi,
this runs fine here:
java org.xmlBlaster.Main
java javaclients.HelloWorldSubscribe -xpath
"/xmlBlaster/key/SimpleChat[ at canal='hello']"
java javaclients.HelloWorldPublish -oid SimpleChat -clientTags
"<SimpleChat canal='hello'/>" -numPublish 10
Note that the very first publish sets the immutable
meta information of the topic (you SimpleChat tag).
Further publishes won't change this meta information.
It could be possible that your topic existed already wihtout
the 'canal' attribute from some former tests you made.
Have a look into the xmlBlaster dump in the <XmlKeyDom> section.
Please try to delete your persistence store
(remove all in $HOME/tmp/* or ${user.home}${file.separator}tmp
if you use HSQLDB) and restart xmlBlaster.
regards,
Marcel
inEvo wrote:
Hi,
I'm currently having a few problems with XPath subscription...
If i subscribe with a key like :
<key queryType='XPATH'>
/xmlBlaster/key/SimpleChat
</key>
then .. if i publish :
<key oid='SimpleChat'>
<SimpleChat canal='hello'>
</SimpleChat>
</key>
<content><![CDATA[test]]></content>
<qos>
<isPublish/>
</qos>
everything works.. but if i had subscribed with a key like:
/xmlBlaster/key/SimpleChat[ at canal='hello']
i would have not received the message!! Am i missing something here?!
I can subscribe to topics using /xmlBlaster/key[ at oid='SimpleChat'] so
what's the problem here?!
Any help will be greatly appreciated.
Regards,
Nelson Silva