Code generation

Message Bridge generates DataBeans for your message definition. See Chapter 2, “Understanding the DataBean Framework” for more information on DataBeans.

StepsTo generate code from your message definitions

  1. In the Definitions panel, select the message definition for which you want to generate code.

  2. Go to Tools | Generate.

  3. If you have not saved your message definition yet, you are prompted to do so. Save your message definition and click Yes. The Generate dialog box opens.

  4. If you want to create Javadoc, click the Create Documentation box.

    This tells Message Bridge to create HTML comments (javadoc) for all the DataBean classes it generates for this message definition.

  5. Enter a package name in the Package Name field.

    This identifies the package name used in all the DataBean classes that Message Bridge generates for this message definition.

  6. Using the browse button, set the directory to where you want Message Bridge to generate code.

    This is where Message Bridge places the DataBean classes and other developer artifacts.

  7. Accept the default .jar file name.

    This identifies the .jar file into which all of the DataBean classes will be placed. If you are using XSD files, xsd is automatically appended to the .jar file name.

  8. Click OK to generate the DataBean classes for your message definition.