Open main menu

CDOT Wiki β

Changes

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

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