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

[xmlblaster] getting the generated OID from a MessageUnit



> hello,
>
> like a newbie, I've just got a problem.
>
> I post some messages like :
>     String xmlKey = "<key oid='' contentMime='" + contentMime + "'
> contentMimeExtended='" + contentMimeExtended + "'>\n"
>                 + "<eConnector application=\"KProcManager\"" />
>                 + "</key>";
>         xmlContent = "<content>\n"+ xmlContent + "</content>" ;
>         String qos = "<qos>\n</qos>" ;
>
> then getting some messages with a query :
>
>     String queryString = "/xmlBlaster/key/eConnector";
>     String xmlKey ="<key oid='' queryType='XPATH'>\n" + queryString +
> "\n</key>";
>     String qos = "<qos></qos>" ;
>
> I get no OID from MessageUnit, like I've not set a OID when sending message.
>
> But I can see there is a generated OID for each message :
>     [INFO  XmlKeyDom] Client /node/K3/client/guest/13 is accessing
> message oid="K3-1037039328728-19" after successful query
>
> Question : how to get the generated OID when querying messages ???
in
src/java/org/xmlBlaster/client/UpdateKey.java
there are methods to give you the key and oid after you received an update
or performed a get. getOid() and toXml()

take a look at
demo/javaclients/ClientQuery.java
>
> Thanx a lot,
> Cyrille

HTH

regards

Heinrich