Open main menu

CDOT Wiki β

Changes

Teams Winter 2011/team1/OSGI/Implement the Service Consumer

881 bytes added, 17:00, 16 February 2011
no edit summary
=== 3. Implement the Service Consumer ===
1. In order to use the You need service interface and service provided we need provider bundles to create run your consumer2. Create a new Plug-in-Project '''Ticketing Consumer''' (''File -> New -> Other -> Plug-in-Project'')3. Give it a distinctive name and accept all defaults for the next screens. Click ''Finish''4. Your project is created and MANIFEST file opens. Click on ''Dependences'' and add interface bundle6. Check your manifest file: <pre> '''Manifest-Version:''' 1.0 '''Bundle-ManifestVersion:''' 2 '''Bundle-Name:''' Consumer '''Bundle-SymbolicName:''' cs.ecl.osgi.lab.ticketing.consumer '''Bundle-Version:''' 1.0.0.qualifier '''Bundle-Activator:''' cs.ecl.osgi.lab.ticketing.consumer.Activator '''Bundle-Vendor:''' Team1 '''Require-Bundle:''' org.eclipse.ui, org.eclipse.core.runtime '''Bundle-RequiredExecutionEnvironment:''' JavaSE-1.6 '''Bundle-ActivationPolicy:''' lazy '''Import-Package:''' cs.ecl.osgi.lab.ticketing, org.osgi.framework;version="1.3.0" </pre>5. You should have three bundles now:[[Image | Consumer1.jpg : 500px ]]
1
edit