The following topics are covered:
eXo Webservice provides a framework to cross-domain AJAX. This section shows you how to use this framework.
You can checkout the source code at https://anonsvn.jboss.org/repos/exo-jcr/ws/trunk/exo.ws.frameworks.javascript.cross-domain-ajax.