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

Re: [xmlblaster] get() PtP messages



Oleg Orlov wrote:
Hello!

Is where any way to get PtP messages synchronously?

Thanks, Oleg.



Hi Oleg,
you can invoke before connecting

// setup the receiver client ...
receiver = glob.getXmlBlasterAccess();
// setup the caching for 10 messages
receiver.createSynchronousCache(10);

and then when you want to retreive the messages:
MsgUnit[] msg = receiver.getCached(key, qos);


The messages are retrived transparently by the client library and you can invoke getCached synchroneously.


See more on
http://www.xmlBlaster.org/xmlBlaster/doc/requirements/client.cache.html

Saluti
Michele