ServiceImplSync interface

Service components that generically handle synchronous service invocations implement this interface.

Purpose

Use this interface to invoke a service with a synchronous interface. Generally, the services have short duration and respond quickly to the component.

Examples

The following shows a client invoking the stockQuote service synchronously.
Service stockQuote = (Service)serviceManager.locateService(“stockQuote");
Float quote = (Float)stockQuote.invoke(“getQuote”, new Object[] {“IBM”})[0];

Parent topic: Programming interfaces

Related reference
Component interface
DataFactory interface
EndPointReference interface
EndPointReferenceFactory interface
Service exceptions
InterfaceType interface
Service interface
ServiceCallback interface
ServiceImplAsync interface
ServiceManager class
Ticket interface

Related information
Interface ServiceImplSync APIs


Terms of use |

Last updated: Tue Sep 20 03:22:37 2005

Copyright IBM Corporation 2005.
This information center is powered by Eclipse technology (http://www.eclipse.org)