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

Re: [xmlblaster] Querying Qos with XPath ?

Cyrille Giquello wrote:
again on da line,

I try, but can't querying the Qos with XPath ...
Perhaps it's my Query, or querying Qos is not supported ???

XPath Query = /xmlBlaster/qos/sender['test']

Qos of message =
   <state> OK </state>
   <sender> test </sender>
   <rcvTimestamp millis=\'1013695176202\'>2002-02-14 14:59:36.202</rcvTimestamp>
   <expiration timeToLive=\'129599762\'/>

Query of QoS with XPath is not possible. I even never thought of such a use case.

Hmm, is this a feature we should have?

I see some performance problems with QoS query.
The QoS timestamp changes with every message published,
this would force an update of the big DOM tree inside xmlBlaster
for every publish().

If i look at a typical qos:

       <rcvTimestamp millis='1013695176202'/>
       <expiration timeToLive='12000' />

it could be an approach to merge only more or less invariant
tags into the bigDom....

You should probably better put all queryable meta informations into the key. This will work with the current version.


-- Marcel Ruff mailto:ruff at swand.lake.de http://www.lake.de/home/lake/swand/ http://www.xmlBlaster.org