[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [xmlblaster-devel] XPath subscriptions


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.


inEvo wrote:

I'm currently having a few problems with XPath subscription...

If i subscribe with a key like :

<key queryType='XPATH'>

then .. if i publish :

<key oid='SimpleChat'>
   <SimpleChat canal='hello'>

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.


   Nelson Silva