The JSONRPC importer (RoSe_importer.jabsorb) allows you to create an OSGi service from a JSONRPC endpoint.

Install

In order to use the RoSe JSONRPC importer you need to deploy the following bundles:

<dependency>
    <artifactId>jabsorb-importer</artifactId>
    <groupId>org.ow2.chameleon.rose.jsonrpc</groupId>
    <version>${rose.version}</version>
</dependency>
  • the org.jabsorb bundle (here),
  • http client TODO add bundle link
  • and the RoSe core (snapshot, release).

Overview

Component name: RoSe_importer.jabsorb

Usage

Once you have deployed the bundles on the gateway, in order to the JSONRPC importer, you must add an instance of RoSe_importer.jabsorb to your RoSe machine.

  • If you have create the machine through the Json Configuration file. json "component" : [ { "factory" : "RoSe_importer.jabsorb" } ]

  • If you have create the machine through the Java Fluent API java import static org.ow2.chameleon.rose.api.Machine; import static org.ow2.chameleon.rose.api.MachineBuilder.machine; [...] //add the jsonrpc importer to your machine. machine.importer("RoSe_importer.jabsorb").create();