metaparadigm
01-24-2005, 07:07 AM
JSON-RPC-Java is a key new piece of Java web application infrastructure that allows JavaScript DHTML web applications to call remote methods in a Java Application Server (remote scripting) without the need for page reloading (as is the case with the vast majority of current web applications).
It enables a new breed of fast and highly dynamic enterprise Java web applications (using similar techniques to Gmail and Google Suggests).
It differs from existing solutions in that it requires minimal coding (one line of code to export an object securely to a JavaScript client) and handles complex types such as Java Beans and generic collection classes.
Some terminology so you know what we're talking about:
* JSON (JavaScript Object Notation) is a lightweight data-interchange format with language bindings for C, C++, C#, Java, JavaScript, Perl, TCL and others.
* JSON-RPC is a simple remote procedure call protocol similar to XML-RPC although it uses the lightweight JSON format instead of XML.
* XMLHttpRequest object (or MSXML ActiveX in the case of Internet Explorer) is used in the browser to call remote methods on the server without reloading the page.
* JSON-RPC-Java is a Java implementation of the JSON-RPC protocol.
JSON-RPC-Java allows you to transparently call server-side Java code from JavaScript with its included lightweight JSON-RPC JavaScript client. It is designed to run in a Servlet container such as Tomcat and can be used with JBoss and other J2EE Application servers to allow calling of plain Java or EJB methods from within a JavaScript DHTML web application.
Minimal or zero changes are necessary to existing server-side Java code to allow calling from JavaScript (such as the marshalling and unmarshalling of special types) as JSON-RPC-Java dynamically maps JavaScript objects to and from Java objects using Java reflection.
JSON-RPC-Java allows simple exporting of Java objects by reflection on their method signatures (a single line of code is required to provide access to all public methods of a Java object).
JSON-RPC-Java is intended for use in next generation Java / DHTML / JavaScript enterprise web applications to allow them to provide a similar level of speed and interactivity to that of typical standalone client server GUI applications.
Highlights of some of the benefits:
* Dynamically call server-side Java methods from JavaScript DHTML web applications. No Page reloading.
* Transparently maps Java objects to JavaScript objects.
* Lightweight protocol similar to XML-RPC although much faster.
* Leverages J2EE security model with session specific exporting of objects.
* Supports Internet Explorer, Mozilla, Firefox, Safari, Opera and Konqueror (with patch)
See http://oss.metaparadigm.com/jsonrpc/ for details.
It enables a new breed of fast and highly dynamic enterprise Java web applications (using similar techniques to Gmail and Google Suggests).
It differs from existing solutions in that it requires minimal coding (one line of code to export an object securely to a JavaScript client) and handles complex types such as Java Beans and generic collection classes.
Some terminology so you know what we're talking about:
* JSON (JavaScript Object Notation) is a lightweight data-interchange format with language bindings for C, C++, C#, Java, JavaScript, Perl, TCL and others.
* JSON-RPC is a simple remote procedure call protocol similar to XML-RPC although it uses the lightweight JSON format instead of XML.
* XMLHttpRequest object (or MSXML ActiveX in the case of Internet Explorer) is used in the browser to call remote methods on the server without reloading the page.
* JSON-RPC-Java is a Java implementation of the JSON-RPC protocol.
JSON-RPC-Java allows you to transparently call server-side Java code from JavaScript with its included lightweight JSON-RPC JavaScript client. It is designed to run in a Servlet container such as Tomcat and can be used with JBoss and other J2EE Application servers to allow calling of plain Java or EJB methods from within a JavaScript DHTML web application.
Minimal or zero changes are necessary to existing server-side Java code to allow calling from JavaScript (such as the marshalling and unmarshalling of special types) as JSON-RPC-Java dynamically maps JavaScript objects to and from Java objects using Java reflection.
JSON-RPC-Java allows simple exporting of Java objects by reflection on their method signatures (a single line of code is required to provide access to all public methods of a Java object).
JSON-RPC-Java is intended for use in next generation Java / DHTML / JavaScript enterprise web applications to allow them to provide a similar level of speed and interactivity to that of typical standalone client server GUI applications.
Highlights of some of the benefits:
* Dynamically call server-side Java methods from JavaScript DHTML web applications. No Page reloading.
* Transparently maps Java objects to JavaScript objects.
* Lightweight protocol similar to XML-RPC although much faster.
* Leverages J2EE security model with session specific exporting of objects.
* Supports Internet Explorer, Mozilla, Firefox, Safari, Opera and Konqueror (with patch)
See http://oss.metaparadigm.com/jsonrpc/ for details.