This API enables objects to be easily passed from Java to JavaScript via XML. It consists of a Java library and a JavaScript file. The Java recursively turns any bean or collection into XML. The JavaScript returns an object similar to the Java object.
JS4J is an extensible framework built on Java and XML that generates Javascript. It contains a built-in implementations to manage objects that have been generated by the framework, and can provide a scalable alternative to AJAX implementations.