Cilia/Cilia Installation

From Wiki Adele Team
Jump to: navigation, search

i Cilia applications runs on OSGi platform. OSGi allows deploying and executing modular service oriented applications as Bundles. Bundles can be installed, uninstalled, started or stopped without restarting the platform. Cilia is distributed as a set of OSGi Bundles.

Prerequisites

  • An OSGi distribution. We have tested Cilia into Felix and Equinox.
  • The iPOJO component model.

Download and Install Cilia Platform

  • Get the latest stable distribution (set of Cilia bundles) from here. With Felix 3.2.2 and iPOJO 1.8.0.
  • Or get the bundles separately and use your preferred OSGi distribution. For example, in Felix distribution you only have to put them into the bundle directory.
  • Cilia is formed by the next bundles:
Artifact Latest Version Description
cilia-core 1.5.2 Cilia core bundle.
cilia-runtime 1.5.2 The Cilia runtime.
cilia-remote 1.5.2 The Cilia REST Service Using RoSe. For more information see Cilia_REST.
ea-adapter 1.5.2 An Event-Admin Adapter and linker.
jms-adapter 1.5.2 An JMS Adapter and linker using JORAM 5.7.

You can also get the code of Cilia and build it by yourself. Source code is available here.

Preconfigured Cilia Platform

A preconfigured Cilia distribution is also available, it is based in the Felix OSGi distribution. It includes the necessary bundles to run the Cilia framework. Simply download and unzip the Cilia Standard Distribution [1].

Distribution files and directory structure

The Cilia distribution is composed of the following directories and file:

  • cilia and cilia.bat a simple Cilia launcher.
  • ciliaDebug and ciliaDebug.bat a launcher with debug parameters.
  • bin : binary file that embed Apache Felix OSGi framework.
  • bundle : contains all the bundles of the distribution. They are automatically loaded and executed when lunching the platform.
  • load : this directory is used for the hot deployment of bundles and mediation chains (file with .dscilia extension). If it does not exist, it must be created.
  • conf : contains configuration file (config.properties). This is where you can configure the execution platform before running it.

Running Preconfigured Cilia distribution

You can also launch it using the following command line In Linux

$sh cilia

In windows

c:\>cilia.bat

When the platform is ready, type the following command lb to show the installed bundles.