Adobe® LiveCycle® Data Services ES 2.6 Developer Guide

Running the LiveCycle Data Services ES sample applications

When you install LiveCycle Data Services ES, the installer creates the lcds-samples web application that contains sample applications, including the 30 Minute Test Drive application. The sample applications demonstrate basic capabilities and best practices for developing LiveCycle Data Services ES applications.

The samples use an HSQLDB database that is installed in the install_root/sampledb directory. You must start the LiveCycle Data Services ES server and the samples database before you can run the LiveCycle Data Services ES samples. After starting the server and database, access the main sample application page by opening the following URL in a browser:

http://localhost:8400/lcds-samples/

The objective of the 30 Minute Test Drive is to give you, in a very short time, an understanding of how the Adobe® LiveCycle™ Data Services ES works. Access the 30 Minute Test Drive application by opening the following URL in a browser:

http://localhost:8400/lcds-samples/testdrive.htm

The client-side source code for the samples is shipped in the lcds-samples\WEB-INF\flex-src\flex-src.zip file. To modify the client-side code, extract the flex-src.zip file into the lcds-samples directory, and then edit, compile, and deploy the modified examples. Editing the samples makes it easier to get started developing applications because you only have to modify existing code, rather than creating it from scratch.

Extract the client-side source code

  1. Open lcds-samples\WEB-INF\flex-src\flex-src.zip file.
  2. Extract the ZIP file into the lcds-samples directory.

    Expanding the ZIP file adds a src directory to each sample in the lcds-samples directory. For example, the source code for the chat example, Chat.mxml, is written to the directory lcds-samples\testdrive-chat\src.

The server-side source code for these examples is shipped in the lcds-samples\WEB-INF\src\flex\samples directory. These source files are not zipped, but shipped in an expanded directory structure. To modify the server-side code you can edit and compile it in that directory structure, and then copy it to the lcds-samples directory to deploy it.

For more information on the sample applications, see Running the LiveCycle Data Services ES sample applications.

Run the sample applications

  1. Change directory to install_root/sampledb.
  2. Start the samples database by using the following command:
    startdb
    
    

    You can stop the database by using the command:

    stopdb
    
    
  3. Start LiveCycle Data Services ES.

    How you start LiveCycle Data Services ES depends on your system. For example, on Microsoft Windows, you can start it by using the following command:

    Start > Programs > Adobe > LiveCycle Data Services ES 2.6 > Start LiveCycle Data Services Server

  4. Open the following URL in a browser:

    http://localhost:8400/lcds-samples/


 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/livecycle/8.2/programLC/programmer/lcds/build_apps_3.html