Exposing RPC Adapter Services
Web-remoting is a pattern that provides support for JavaScript or client side code to directly invoke server side logic. The IBM implementation for Web-remoting is referred to as the IBM RPC-adapter. The RPC adapter enables you quickly create command-based services that complements programming styles for AJAX applications and other lightweight clients. Implemented as a generic Servlet, the RPC adapter provides an HTTP interface to registered JavaBeans.
The Rational Software Delivery Platform provides support for the RPC Adapter service by enabling you to expose classes and methods as an RPC Adapter Service. To use the RPC Adapter tooling, you need to ensure your project has the Web 2.0 Server-side technologies project facet enabled. However, to be able to run your project on the server, you need to install the WebSphere Feature Pack for Web 2.0.
To expose an RPC Adapter service, complete the following steps:
- In the Enterprise Explorer, right click on a project, and from the pop-up menu select
Services | Expose RPC Adapter Service
The Expose RPC Adapter Service wizard appears.
You can also invoke this wizard be opening a JSP, right clicking on RPC Adapter Services in the Page Data view, and then clicking
New | RPC Adapter Service
- Follow the wizard prompts, make your selections, and click Finish when complete.
When you are finished, a file called RpcAdapterConfig.xml is created in your project in the WEB-INF folder. To further customize your settings, double-click on this file to edit it in the RPC Adapter Configuration Editor.
Related concepts
RPC Adapter Configuration Editor
Remote Procedure Call (RPC) Adapter
JavaScript Object Notation (JSON4J)