Previous Topic

Next Topic

Book Contents

Book Index

Installation

The installation of the JSON-RPC module on the gateway server can be done automatically via script or manually.

Automated Installation

At runtime you can execute the module's install script through the Kit Manager, deployed in advance on the OSGi service platform. In general, the Kit Manager can be used from a text console to the runtime:

To execute the install script, which in terms of the Kit Manager is to "install a kit", go to the kitman command group and use the install console command. The set of bundles for the JSON RPC module, that you can find in the bin/pscripts/webservices.jsonrpc.txt, is automatically available under the "Web Services JSON RPC Provider Bundles" kit name. To install it, pass the name or the ID of the kit as an argument to the install Kit Manager console command:

kitman.install "Web Services JSON RPC Provider Bundles"

The kitman command group is exported by the Kit Manager bundle – com.prosyst.mbs.util.kitman.jar, located in the /bundles directory.

You may also write your own install scripts for easier installation (and start) of a certain set of bundles. The required bundles for the JSON-RPC module are listed in the Manual Installation section below.

Manual Installation

You can install only the needed bundles from the module taking into account their dependencies.

Install and start the following bundles:

To install and start a bundle execute the console command from the fw command group:

install -s <bundle_name>.jar

Target URL

In a Web application all JSON-RPC requests should be sent over Ajax, to the common URL that the distribution provider handles, that is, to: