<<< 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
This page (revision-3) was last changed on
17-Mar-09 08:01 AM, -0700
by KeithBabo.
This page was created on
28-Jan-09 15:27 PM, -0800 by KeithBabo.
More info...
| Version |
Date |
Author |
Size |
Changes ... |
|
3
|
17-Mar-09 08:01 AM, -0700
|
KeithBabo |
1039 |
to previous
|
|
2
|
28-Jan-09 15:37 PM, -0800
|
KeithBabo |
1349 |
to previous
|
to last
|
|
1
|
28-Jan-09 15:27 PM, -0800
|
KeithBabo |
1243 |
to last
|