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

RE: [xmlblaster] get() PtP messages

-----Original Message-----
From: owner-xmlblaster at server.xmlBlaster.org
[mailto:owner-xmlblaster at server.xmlBlaster.org]On Behalf Of Michele Laghi

> Hi Oleg,

Hello Michele!
Thanks for your response.

> 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.

getCached() uses subscribe() behind the scenes. In my use case client need
to connect, receive ALL own messages and disconnect.
Is where any way to understand, what where is no more incoming messages?
Can XPATH query help me?

> Saluti
> Michele

Regards, Oleg.