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

Re: [xmlblaster-devel] XPath subscriptions



Hi,

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?

Regards,

Nelson

Marcel Ruff wrote:

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