Not yet rated

Problem

How to quickly deploy a (Document Service Component)DSC on LiveCycle Server using java?

Solution

Make use of the DeployComponent.java file packaged with LiveCycle installation.

Detailed explanation

This utility first undeploys the component and then deploys it to the LiveCycle server.
 
Download  Files.zip to your local machine and extract it. It contains two files deploy.bat and UnDeployComponent.java.
 
Follow the following steps to quickly undeploy and deploy the component :-
 
1.) Go To the directory <LiveCycle Install Dir>\LiveCycle_ES_SDK\misc\LiveCycleESAPI
 
2.) Unzip the archive LiveCycleESAPI to the directory <LiveCycle Install Dir>\LiveCycle_ES_SDK\misc\LiveCycleESAPI (Use extract here option)
 
3.) Go to the directory <LiveCycle Install Dir>\LiveCycle_ES_SDK\misc\LiveCycleESAPI\FoundationAPI\DeployComponent
 
4.) Edit the appropriate properties file (Jboss.properties, WebSphere.properties or Weblogic.properties) for your server.
 
5.) Copy the file UnDeployComponent.java to the directory <LiveCycle Install Dir>\LiveCycle_ES_SDK\misc\LiveCycleESAPI\FoundationAPI\DeployComponent\src\com\adobe\livecycle\samples\foundationAPI
 
6.) Open the deploy.bat file in a text editor and set the parameters according to your setup.
 
7.) Run the batch program in a command prompt by using the below command :-
deploy.bat <DSC name> <Component Id> <Version>
 
**Note: Component ID and Version attributes can be found in the jar file of your component in the following way:
Open the jar file with a zip utility and view the contents of the Component.xml file in a text editor.
example: deploy.bat adobe-forms-dsc.jar com.adobe.livecycle.Forms 9.0.0.2.20100902.3.712286
 
PS: The folder name LiveCycle_ES_SDK has been changed to sdk for ES3 so if you plan to run this utility on ES3, update the paths accordingly.

+
This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License. Permissions beyond the scope of this license, pertaining to the examples of code included within this work are available at Adobe.

Report abuse

Related recipes