Welcome!

AJAX & REA Authors: John Funnell, Bob Little, Kevin Hoffman, Maureen O'Gara, Onkar Singh

Related Topics: AJAX & REA

AJAX & REA: Article

Introducing OpenAjax Hub 1.0

Providing key integration services

The developer then includes code so that each chart widget and data grid widget subscribes to the new date event and provides a callback function. The various callback functions then update the given visualization widget appropriately:

<script type="text/javascript">
    ...
    function SubscribeNewDateCallback(eventname, publisherData, subscriberData) {
    ...
    // Update the given visualization widget
    ...
    }
    // Subscribe to (i.e., listen for) any
    // "myapp.newdata" events via the OpenAjax Hub
    OpenAjax.hub.subscribe("myapp.newdate", SubscribeNewDateCallback);
    ...
</script>

InteropFest 1.0 - Examples of the Hub in Action
The InteropFest 1.0 was an interoperability event spanning the months of July to September 2007 in which multiple AJAX products and toolkits used the OpenAjax Hub 1.0 to achieve multi-toolkit integration. You can find several examples of OpenAjax Hub 1.0 in action on the wiki page for the InteropFest: www.openajax.org/member/wiki/InteropFest_1.0.

OpenAjax Hub 1.1 and Beyond
The members of OpenAjax Alliance have already begun work toward OpenAjax Hub 1.1, which is likely to extend the pub/sub manager outside of a single browser frame and address the following scenarios:
•  Mediating multiple Comet connections: The Communications Hub Task Force at OpenAjax Alliance is addressing technical issues around Comet (AJAX server-push), particularly how to allow Comet to work in mashup scenarios in today's browsers where the mashup might have multiple push components (and thus exceed the browser's two connection limit).
•  Cross-frame messaging: Cross-frame messaging is likely to be a requirement in certain mashup scenarios.
•  Secure Mashups: The Security Task Force at OpenAjax Alliance is addressing the secure mashup question. The objective is to allow multiple arbitrary components to be used within a mashup, but where each component is isolated (sandboxed) from the other components and where the components communicate with each other over a secure message bus.

Down the road, OpenAjax Hub might add APIs for local persistent storage and offline support, a collection of standard messages and payloads, copy/paste and drag/drop support, and features to support data binding across AJAX libraries.

Today, OpenAjax Hub 1.0 provides key integration services that enable multiple AJAX toolkits to co-exist and talk to each other within the same Web page. Going forward, OpenAjax Hub 1.1 will expand into areas critical to Web 2.0 applications such as Comet-style communications, cross-frame messaging, and secure mashups.

Links to the Specifications and Open Source
Detailed information about the Hub can be found at the following locations:
•  The OpenAjax Hub 1.0 specification:
www.openajax.org/member/wiki/OpenAjax_Hub_Specification
•  Open source reference implementation:
http://openajaxallianc.sourceforge.net
•  InteropFest 1.0:
www.openajax.org/member/wiki/InteropFest_1.0

More Stories By Jon Ferraiolo

Jon Ferraiolo is an employee of IBM within its Emerging Internet Technologies group. Jon is devoted exclusively to OpenAjax Alliance, where he manages operations and leads many activities.Before joining IBM in 2006, Jon worked at Adobe for 13 years where he was an architect, engineering manager and product manager.

Jon has been a speaker at every AJAXWorld conference since October 2006, and has spoken at dozens of other industry conferences in the past couple of years. AJAXWorld magazine has published 6 or 7 articles Jon has submitted over the past couple of years.

Comments (0)

Share your thoughts on this story.

Add your comment
You must be signed in to add a comment. Sign-in | Register

In accordance with our Comment Policy, we encourage comments that are on topic, relevant and to-the-point. We will remove comments that include profanity, personal attacks, racial slurs, threats of violence, or other inappropriate material that violates our Terms and Conditions, and will block users who make repeated violations. We ask all readers to expect diversity of opinion and to treat one another with dignity and respect.