Take a survey

Developing Applications Using APIs > Working with Components > Removing Services > Removing services using the Java API

Removing services using the Java API
To remove a service by using the Java API, perform the following steps:
1.
Include client JAR files, such as adobe-workflow-client-sdk.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 the ServiceClientFactory object.
3.
Reference the service to remove 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.
4.
Remove the service configuration by invoking the ServiceRegistryClient object’s removeConfiguration method and passing the ServiceConfiguration object that was returned by the getHeadActiveConfiguration method.
5.
Get the service identifier by invoking the ServiceConfiguration object’s getServiceId method. This method returns a string value that specifies the identifier of the service.
Get the service instance to remove by invoking the ServiceRegistryClient object’s getService method and passing the service identifier. This method returns a Service object.
Remove the service by invoking the ServiceRegistryClient object’s removeService method and passing the Service object.
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/removingServices.146.3.html