Tutorial: Run ggc demos

You can create a war file that allows you to run the Genero Ghost Client (GGC) demo applications tests on applications running on your J2EE server.

Before you begin:
  • The demos.war file is created as described in Tutorial: Run fgl demos.
  • Run the script file envcomp in the Genero BDL installation directory to make sure that your FGLDIR and PATH are set correctly to run compiler and runtime system tools.

  1. Compile the GGC demo application source files (4gl) in the your GGC installation samples directory.
    Type the following commands at the command line.
    fglcomp -r -M Console.4gl 
    fglcomp -r -M SimpleTest.4gl
    The 42m files are created.
  2. Run the demos application on your J2EE server.
    1. If not aleady deployed, deploy the demos.war file (created in Tutorial: Run fgl demos) using your J2EE server tool or deployment portal interface.
    2. Run the demos applications from the J2EE server.
  3. Run the SimpleTest application to test against the simple-demo application running on your J2EE server.
    For example, type a command like this at the command line of your GGC installation samples directory
    
     fglrun SimpleTest http://host:port/demos/simple-demo
    You should see output from the test as shown.
    Figure: Running GGC test demos through JGAS

    Image shows the output from a Genero Ghost Client test run through the JGAS

    For more information on Genero Ghost Client, see the Genero Ghost Client User Guide.