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

Re: [xmlblaster-devel] XPath subscriptions


Is there a way to dispose of topics stored in the dabase?!

Also is there a way to use a single xmlBlaster for multiple sessions, that is to say... Let's imagine i have a topic called 'test"

A user would login to a given session of the xmlBlaster server, and all those in the same session, if they had subscribed to the 'test' topic would receive the message. Still, another user could login to the xmlBlaster, in a diferrent session, and subscribe to the same 'test' topic, but all messages published by users in the first session would not be received by him.

Does something like this exist or do i have to use some client tags for this?



Marcel Ruff wrote:


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