Demo applications are packaged with the FGLGWS product. You can create a war file that
allows you to run these applications through the JGAS. 
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.
 
- 
A Java Runtime Environment (JRE) is required to run the application
war file with fglgar run. 
 
 
- 
Create a new directory, for example, called "demos". 
 - 
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>
 
 - 
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>
 
 - 
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.
 - 
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.
 - 
Run the demos application on standalone JGAS
- 
Use the following command at the command line of the demos directory:
fglgar run --war demos.war
 
 
- 
You can now run the applications via your browser at the following URLs: 
http://localhost:8080/demos/ua/r/gwc-demo
http://localhost:8080/demos/ua/r/simple-demo
 
 
 - 
Or you can run the demos application on your J2EE server. 
- 
Deploy the war file using your J2EE server tool or deployment portal
interface.
 
- 
Run the applications from the J2EE server.