[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[xmlblaster] Re: Newbie question: xlmblaster and php: how to get updates?
- To: xmlblaster at server.xmlBlaster.org
- Subject: [xmlblaster] Re: Newbie question: xlmblaster and php: how to get updates?
- From: "Eduard Martinez" <martinez.bernal at gmail.com>
- Date: Thu, 7 Sep 2006 20:42:26 +0200
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=gCVlG2x7PJCsIcVZvmHUlvvyXwzZ/jCoynj1qLtOhcf+LRVw0Q9qn4H38fxFgFDezO6yXfZk63sgl37mqprzgMAsh26hOvdk0NEcSfFRzNEYj208T5Nhji7ADO3ZHxdLa0dt+dhtBJ5izDs8S6DBxtva5oITb/HrK+k3KG8sJRU=
- In-reply-to: <200609062154.36789.martinez.bernal at gmail.com>
- References: <200609062154.36789.martinez.bernal at gmail.com>
- Reply-to: xmlblaster at server.xmlBlaster.org
- Sender: owner-xmlblaster at server.xmlBlaster.org
thank you for your links!, I will take a look
On 9/6/06, Eduard Martínez <martinez.bernal at gmail.com> wrote:
---------- Mensaje reenviado ----------
Subject: Re: [xmlblaster] Newbie question: xlmblaster and php: how to get
Date: Miércoles, 6 de Septiembre de 2006 20:41
From: Marcel Ruff <mr at marcelruff.info>
To: xmlblaster at server.xmlblaster.org
Eduard Martinez wrote:
> I'm trying to implement an application which sends messages asynchrolously
> between a java application an several php clients. I took a look to the
> demo, but I can't figure how to suscribe on a topic and specify
> something to
> get updates when there is a new message of the topic, like the java
> Is it possible? How can I do it?
i don't think that Cyrilles XmlRpc demo supports callbacks.
So you need to make your own implementation,
here are three approaches you could try:
1. Extend Cyrilles XmlRpc example with a XmlRpc-callback server,
there are many such implementations, see
2. Access our xmlBlaster C library from PHP.
Like this you have tunneled callbacks, high performance, zlib compression
and see how our C# example is doing this:
3. You can use Cyrilles XmlRpc PHP code and use blocking get() calls
You would subscribe with PHP but the clients callback queue has set
so the messages are collected on server side. Now you can use
calls which block until messages are available
code sample to use for PHP).
This approach is very simple but you need to use a dedicated thread in
PHP for the blocking get() call