Take a survey

Developing Applications Using APIs > Working with Components > Starting Services > Starting a service using the Java API

Starting a service using the Java API
To start a service by using the Java API, perform the following steps:
1.
Include client JAR files, such as adobe-livecycle-client.jar, in your Java project’s class path. (See Including LiveCycle ES library files.)
2.
Create a ServiceClientFactory object that contains connection properties. (See Setting connection properties.)
Create a ServiceRegistryClient object by using its constructor and passing a ServiceClientFactory object that contains connection properties. (See Setting connection properties.)
3.
Retrieve the service to start by invoking the ServiceRegistryClient object’s getHeadActiveConfiguration method and passing a string value that specifies the name of the service. If multiple service versions exist, the latest version (referred to as the head version) is returned.This method returns a ServiceConfiguration object that represents the service.
Start the service by invoking the ServiceRegistryClient object’s start method and passing the ServiceConfiguration object that was returned by the getHeadActiveConfiguration method.
View Quick Start

 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/livecycle/es/sdkHelp/programmer/sdkHelp/startingServices.144.3.html