Deploying data model changes to the application server

How you deploy changes to the data model depends on if you are working in a development or production environment.

Development environment

If you are working in a development environment, then do the following:

  1. Use the following command to regenerate the Data Dictionary so that it reflects your data model changes:
    gwb genDataDictionary
  2. Stop and restart both the application server and Studio. As the application server and Studio share the same file structure in the development environment, you need only restart the development application server to pick up these changes.

    If necessary (and it is almost always necessary if you change the data model), PolicyCenter runs the database upgrade tool during application start up.

Production environment

If you are working in a production environment, then do the following:

  1. Use the following command to regenerate the Data Dictionary so that it reflects your data model changes:
    gwb genDataDict
  2. Create a .war or .ear file using one of the build commands.

    For information on how to use these commands, see Command reference.

  3. Copy this file to the application server. The target location of the file is dependent on the application server.

    If necessary (and it is almost always necessary if you change the data model), PolicyCenter runs the database upgrade tool during application start up.