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

Re: How do i Generate Unique ID for xmlblaster Message using Python as Client ?



Sachin Tekale wrote:
> 
> Hello,
> I want to generate unique ID for xml blaster Message using Python client?
> And use this oid from another Python client to acess the Message ?
Hi Sechin,

if you send a message with an empty oid, xmlBlaster
generates a unique one for you, e.g.

 <key oid='' contentMime='text/plain'>
   <grandma/>
 </key>

As the other Python client does not know the oid
it must use an XPath query like

 //grandma

to access messages of the topic <grandma/>

regards,

Marcel

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