wiki:RpDynamicCreation

Version 3 (modified by harald.kornmayer, 14 years ago) (diff)

--

Dynamic Resource Creation

The Resource Creation Interface is provided by the Resource Host in order to enable the dynamic creation of new Sensei Resources. The Resource Creation interface provide currently one method called "deployResource" with a Resource Description Template and a set of parameters as arguments. The SENSEI specification is technology agnostic, so the Resource Host with an RCI can use various technologies.

Demonstrator

The demonstrator of the RCI is based on OSGi technology, namely the Equinox runtime. The services are realized with the Restlet framework and can be access using the RESTLET patterns. The OSGi runtime plus the Restlet framework represent the Resource Host. A REST interface for the RCI is available. With a POST message to the interface, new Resources can be deployed. In our example we create a new "Averager" Resource dynamically.

The Resource Host and the RCI

  1. Download one of the following versions of the Resource Host:
    1. Linux (gtk.x86)
    2. Windows (win32.x86)
    3. MacOS (cocoa.ppc)
  2. Unzip the content
  3. Change to the directory ResourceHost? + Perhaps change the permission of the executable
  4. run the executable RCIResourceHost