|
|
Include client JAR files, such as adobe-workflow-client-sdk.jar, in your Java project’s class path. (See Including LiveCycle ES library files.)
• 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.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.Remove the service configuration by invoking the ServiceRegistryClient object’s removeConfiguration method and passing the ServiceConfiguration object that was returned by the getHeadActiveConfiguration method.
• 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.
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