Take a survey

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

Removing components using the Java API
To remove a component 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 ComponentRegistryClient object by using its constructor and passing a ServiceClientFactory object that contains connection properties.
3.
Retrieve the component to remove by invoking the ComponentRegistryClient object’s getComponent method and passing a string value that specifies the component identifier. This method returns a Component object.
4.
Determine whether the component is running by invoking the Component object’s getState method. This method returns a static member of Component. If the component is in a running state, this method returns Component.RUNNING.
If the component is in a running state, stop the component by invoking the ComponentRegistryClient object’s stop method and passing the Component object.
5.
Uninstall the component by invoking the ComponentRegistryClient object’s uninstall method and passing the Component 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/removingComponents.147.3.html