To programmatically deploy a LiveCycle application,
perform the following tasks:
Include project files.
Create required LiveCycle Client API objects.
Retrieve an existing archive file.
Import the LiveCycle application.
Check the status of the LiveCycle application.
Include project files
Include necessary files into your development
project. Because you are creating a client application by using
Java, include the necessary JAR files.
Create required LiveCycle Client API objects
Before you
can programmatically import an application, create an ApplicationManager object.
Ensure that you specify an administrator user name when setting
connection properties. (See Setting connection properties.)
Retrieve an existing archive file
To import an application, reference
a valid LCA file. A LCA file is created using Workbench. (See LiveCycle Workbench 11 Help .)
Import the LiveCycle application
After you reference
an LCA file, you can import the application. After you import the
application, you can check its status to ensure that the application
was successfully imported. If the status code is 1, the application
was successfully imported.
Check the status
After you import a LiveCycle application,
you can check its status to ensure that the application was successfully
deployed. The following list specfies possible values:
0 - The status of the application is unknown.
1 - The application is successfully deployed.
2 - An import error occurred.
3 - The application was successfully exported.
4 - An error occurred when the application was exported.
5 - The application was removed successfully.
6 - An error occurred when the application was removed.
7 - The application was successfully previewed .
8- A status preview error occurred.
9 - Information about the appliation was successfully retrieved.
10 - An error occurred when information was retrieved.
Note: When importing an application, values 0, 1 or
2 are returned.