PDA

View Full Version : PageBus for Ext?



agile1
24 Aug 2007, 7:28 PM
Hi All

TIBCO has announced PageBus (a JavaScript message bus for client components).

http://www.tibco.com/devnet/pagebus/default.jsp

Instead of listening to events generate by the components (eg store.on("load",...)) the store can post the event on a queue and listener can register themself on the queue and process the event. Similar to the Observable class (maybe not)?

Not sure if this technology can be a consideration of Ext framework or may be an adapter can be written to post events to the message bus instead of fire events...

How does the group feel about this?

sjivan
26 Aug 2007, 8:07 PM
I think the pagebus functionality is pretty cool but has its place. It is more suitable for communicating between hetrogenous components like a mashup / portal. When working strictly within a single library like Ext, explicitly registering listeners with components is more appropriate is most cases with clarity in callback arguments (versus non typed payload when using the pagebus publish / subscribe style) . And if you feel the need to publish event for cross component communication, you can always register a listener with ,say, a store which then uses the Tibco API to publish the event on the bus.

Sanjiv

DeeZ
27 Aug 2007, 1:36 AM
I suggest to have a look to the openAjax hub message implementation: OpenAjax Hub (http://www.openajax.org/OpenAjax%20Hub.html)

Several frameworks already support it (Dojo for example) and this alliance is supported by Googla, Opera, etc. http://www.openajax.org/index.html

Seems a better start for my two cents.

GalaxySong
28 Aug 2007, 1:33 AM
I suggest to have a look to the openAjax hub message implementation: OpenAjax Hub (http://www.openajax.org/OpenAjax%20Hub.html)

Several frameworks already support it (Dojo for example) and this alliance is supported by Googla, Opera, etc. http://www.openajax.org/index.html

Seems a better start for my two cents.
Its home page says, "Ajax developer finds that a single Ajax library does not meet all of his requirements".
In my case, Ext is enough. If Ext cannot meet our needs, well, let's try adjusting our needs or working around.

Carel
28 Aug 2007, 7:17 AM
Just decoupled some containers by putting the pagebus in between and so far so good. I like it. IMHO it really is just a simple thingy so it does not matter much what you use for this.

jspeaks
5 Dec 2008, 1:22 PM
I just want to know if someone could summarize why PageBus would be better than Observable as described by Jack:
http://extjs.com/forum/showthread.php?p=240305#post240305

I plan on looking into it myself, but it is a question I had that I thought someone might be able to answer.

jspeaks
5 Dec 2008, 1:44 PM
https://extjs.com/forum/showthread.php?p=255894#post255894

jsakalos
19 Sep 2009, 11:56 AM
What about this: http://examples.extjs.eu/?ex=simplebus ?

mabello
19 Sep 2009, 4:38 PM
See also http://www.extjs.com/forum/showthread.php?t=31597

jsakalos
20 Sep 2009, 10:47 AM
See also http://www.extjs.com/forum/showthread.php?t=80829

Condor
20 Sep 2009, 11:45 AM
And also http://www.extjs.com/forum/showthread.php?t=73388.