JSON-RPC-Java is a key piece of Java web application middleware that allows JavaScript DHTML web applications to call remote methods in a Java Application Server without the need for page reloading (now refered to as AJAX). It enables a new breed of fast and highly dynamic enterprise Web 2.0 applications. The main features of JSON-RPC-Java are :
* Dynamically call server-side Java methods from JavaScript DHTML web applications. No Page reloading.
* Asynchronous communications.
* 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
![]()
JSON-RPC-Java is a dynamic JSON-RPC implementation in Java. It allows you to transparently call server-side Java code from JavaScript with an 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.



