Jump to: navigation, search

OSGi : Lab Example

540 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
== Design and implementation ==
In Eclipse define the configuration for the Client bundle and run it.
Important Note: While there are some issues ([ a bug in Eclipse]) with multithreaded Java Swing on Mac OX and Unix, we can run the OSGi system, if you remove the „-ws ${}“ from the launch configuration. Just delete what is highlighted below and the window should start up instantly.
== Results ==
[[Image:Lab-osgi-1.png|300px| ]]
The cs.ecl.osgi.votingsystem.client bundle running should display the Voting dialog:

Navigation menu