Previous Topic: Set Up the Web Generation Application Server EnvironmentNext Topic: Rules for Editing Message Resource Files


Set Up Message Resources

Upon installation of the Java Web Generation application the message resource files are automatically installed in the <CA Gen install directory> \Gen\classes\resources directory. This list of files is not limited, but it must contain the following files:

These Localization files use the naming convention <manager type>messages + "_" + language identifier + ".java" where manager type is one of the four types (csu, fmrt, smrt or wmrt) and language identifier is a two letter code defined in the model under 'Dialect Definition' as the first two letters of the Message Table Name entry.

All message files are Java source files stored in UTF-8 encoded Unicode. Unicode allows all the message files to be edited and viewed at the same time by a Unicode capable editor, for example, Microsoft Software Development Editor.

The message files must be compiled before they can be used in the runtime jar. The utility MKJAVART in <CA Gen install directory>\Gen\classes is used to compile the message files and build a runtime jar.

To build the runtime jar

  1. Open a command prompt window and set the current directory to
    <CA Gen install directory>\Gen\classes.
  2. Execute the MKJAVART batch file from the command prompt.
  3. Enter the following in the command prompt to make the runtime for Web Client, with TCP/IP transport and the new message files:
    mkjavart rt.jar WCE TCPIP