Tutorial: Run fgl demos

Demo applications are packaged with the FGLGWS product. You can create a war file to run these applications on your J2EE server.

Before you begin:

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. Create a new directory, for example, called "demos".

    mkdir demos

  2. With a text editor create a configuration file named gwc-demo.xcf. Add the following configuration and save the file to the "demos" directory:
    <?xml version="1.0" encoding="UTF-8"?>
    <APPLICATION >
      <EXECUTION>
        <PATH>$(res.fgldir)/demo</PATH>
        <MODULE>demo</MODULE>
      </EXECUTION>
    </APPLICATION>
    
  3. Create a second configuration file named simple-demo.xcf with the following and save to the "demos" directory:
    <?xml version="1.0" encoding="UTF-8"?>
    <APPLICATION >
      <EXECUTION>
        <PATH>$(res.fgldir)/demo/Widgets</PATH>
        <MODULE>Edit.42m</MODULE>
      </EXECUTION>
    </APPLICATION>
    
  4. Create the gar file by running the following command at the command line of the demos directory:
    fglgar gar --output demos.gar --application gwc-demo.xcf --application simple-demo.xcf
    The demos.gar file is created.
  5. Create the war file by running the following command at the command line of the demos directory:
    fglgar war --input-gar demos.gar --output demos.war
    
    The demos.war files is created.
  6. Run the application on your J2EE server.
    1. Deploy the war file using your J2EE server tool or deployment portal interface.
    2. Use the link or URL created to access the applications deployed in the war file.
      Tip:

      The base URL in the context of the J2EE server is http://server:port/war_file_name. If you type the base URL in a browser, you get the JGAS user interface home page where you can then access all applications and services published in your war file. For more information on the JGAS user interface, go to JGAS home page.

    3. Select the application to run.
What to do next

Follow the procedure in Tutorial: Run ggc demos to run the Genero Ghost Client (GGC) demo applications tests against the demos application running on your J2EE server.