Changes

Jump to: navigation, search

OSGi : Lab Example

235 bytes added, 14:56, 5 October 2011
Voting System (Example for the OSGi Lab)
As a proof of concept, you will be given three candidates and as the election takes place you have to print the number of votes for each candidate. The code for the entire project could be found at:
the code from https://guest:1673852@zenit.senecac.on.ca/svn/ecl500/Lectures/trunk/LAB_OSGi_EXAMPLELAB_OSGi_Example/
== Design and implementation ==
In Eclipse define the configuration for the Client bundle and run it.
Important Note: While there are some issues ([https://bugs.eclipse.org/bugs/show_bug.cgi?id=212617 a bug in Eclipse]) with multithreaded Java Swing on Mac OX and Unix, we can run the OSGi system , if you remove the „-ws ${target.ws}“ from the launch configuration. Just delete what is highlighted below and the window should start up instantly.
[[File:fixOSGi-swing-Mac.png]]
 
== Results ==
[[Image:Lab-osgi-1.png|300px| ]]
 
The cs.ecl.osgi.votingsystem.client bundle running should display the Voting dialog:
 
[[Image:Lab-osgi-2.png]]

Navigation menu