Customer Database example

Customer Database is a small example application created from the Web Application application type. The following steps will generate, install and run the Customer Database on the HSQLDB database server and Resin application server that are distributed with RapidJ:

  1. Open the Customer Database project file:

     rapidj\examples\customer\customer.rpj
  2. Open the Generate Database tab.
  3. Press the Generate Database button to open the Generate Database Script dialog.
  4. Press the Add All button to select all entities.
  5. Press the Generate button to generate the script.
  6. Start the HSQLDB database server from the menu, Server -> Start Database Server.
  7. Press the Connect button to open the customer-hsqldb-1.7 connection.
  8. Press the Execute button to execute the SQL. Confirm that the execution was successful in the Messages tab.
  9. Open the Generate Code tab.
  10. Press the Generate Code button to generate the application code.
  11. Start the Resin database server from the menu, Server -> Start Application Server.
  12. Select the resin-2.1 generated directory in the Generated File tree.
  13. Press the Console button in the generated file toolbar.
  14. At the console window type:

     ant install

    (Note: this requires you to have Ant installed, see prerequisites)
  15. Point your browser at to access the Customer Database!

Related topics

Getting started

Related tasks

Opening a project
Executing a sql statement

Related reference

Generate Database tab
Generate Database Script dialog
Messages tab
Generate Code tab
Generated File tree