Open main menu

CDOT Wiki β

Teams Winter 2011/team4/lab2

Revision as of 16:30, 16 February 2011 by Cwdesautels (talk | contribs) (Create the Service Interface)

Lab 2


Tutorial

Create the Service Interface

Define the service interface

  • Right click src->New->Interface
 
  • Then
 
  • Fill in package and name, click Finish
 
  • Code at least one method, Save it

Create the bundle with the interface

  • Right click src->New->Class
 
  • Then fill in package and name, click finish
 
  • Code the method body of sayHello(), save it
 

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