Index Changes
<<< Back to Service API Page

Providing Services

Providing a service using the Service API:

Java Interface

  • Implement the ServiceProvider interface
  • Register an instance of the ServiceProvider implementation in the OSGi service registry
  • Process messages received via the invoke() method and optionally return a response

The following properties are required for instances of a service provider:

  • Service name : defaults to class name, can be specified using:
    • implementation of getServiceName()
  • Endpoint name : defaults to hashCode of object instance, can be specified using:
    • implementation of getEndpointName()
  • Operation names : defaults to method name, can be specified using:
    • implementation of getOperationNames()

All invocations are synchronous, whether the provider implements ServiceProvider or uses annotations.

<<< Back to Service API Page

JSPWiki v2.4.100
[RSS]
« Home Index Changes Prefs
This page (revision-3) was last changed on 17-Mar-09 08:01 AM, -0700 by KeithBabo