Open main menu

CDOT Wiki β

Changes

OSGi : Lab

1,725 bytes added, 16:58, 27 September 2011
no edit summary
Before starting working at your lab, please take a look at an example of services implemented in the book [http://equinoxosgi.org/ OSGi and Equinox, Creating Highly Modular Java Systems]
Bring -----'''Your Lab must define an OSGi service and a service consumption'''. Please find below the code from https://guest:1673852@zenit.senecac.onsteps necessary to build such a system.ca/svn/ecl500/Lectures/trunk/BOOK
into Eclipse # Create the Service Interface## Define the service interface## Create the bundle with the interface# Implement the Service Provider## Register the service in the class Activator.## Define the MANIFEST.MF for the service provider bundle.## Install and run the Service Provider Bundle# Implement the Service Consumer## Define the MANIFEST.MF for the service consumer bundle.## Use the class Activator to find the service.## Implement a class where one can consume the service.## Install and run the ToastClient Service Consumer Bundle.Important note: ''The client (read service consumer) must have a GUI interface''|criteria=Please find them below in the codeorder of their importance:# The correctness of the system design (see [http://zenit.senecac.on.ca/wiki/index.php/OSGi_:_Develop_Simple_Apps the OSGi service architecture]).# The complexity of your OSGi service provider.# The design and implementation of the GUI for the service consumer.# The clarity and usefulness of your tutorial.
Your tutorial must be stored in your repository. If the tutorial format cannot be stored there (e.g. the wiki format), then its address must be stored in the repository. In either case your tutorial must be registered as an entry at [http://zenit.senecac.on.ca/wiki/index.php/OSGi_:_Tutorials the course tutorial resources].
--------------
Important note:
'''Do not forget to register your tutorial at [http://zenit.senecac.on.ca/wiki/index.php/OSGi_:_Tutorials our course resources]'''.
--------------
There is an [http://zenit.senecac.on.ca/wiki/index.php/OSGi_:_Lab_Example example for your lab here]. The sample builds an OSGi voting system.
}}
  |criteria=To The solution for the first Lab (Fall 2011) could be determined}}found [http://zenit.senecac.on.ca/wiki/index.php/OSGi_:_Lab_Fall2011 here]