Changes

Jump to: navigation, search

OSGi : Lab

2,471 bytes added, 16:58, 27 September 2011
no edit summary
[[Category:{{Ecl_labs|type=OSGi|description=In OSGi]], a service is a plain java object which is published to a registry. A consumer can consume the registered service through lookup. Service is built using interface-based programming model. To build a service one must basically provide implementation of a interface. To consume, one only need the interface for the lookup (there is no need for the consumer to know about the service implementation).Before starting working at your lab, please take a look at an example of services implemented in the book [[Categoryhttp:ECL_Activities]//equinoxosgi.org/ OSGi and Equinox, Creating Highly Modular Java Systems]
To -----'''Your Lab must define an OSGi service and a service consumption'''. Please find below the steps necessary to build such a system. # 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 Service Consumer Bundle.Important note: ''The client (service consumer) must have a GUI interface''|criteria=Please find them below in the order 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 determinedstored 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.}} The solution for the first Lab (Fall 2011) could be found [http://zenit.senecac.on.ca/wiki/index.php/OSGi_:_Lab_Fall2011 here]

Navigation menu