Generating EJB Source Code and the Deployment Descriptor

When generating an EJB, classes and interfaces of the EJB are directly selected. The generation retrieves the classes used by the component, as well as the interfaces associated with the classes.

  1. Select Language > Generate Java Code to open the Generation dialog.
  2. Enter the directory in which you want to generate the Java files.
  3. [optional] Click the Selection tab and select the objects that you want to generate. By default, all objects are generated.
  4. [optional] Click the Options tab and select any appropriate generation options (see Generating Java Files).
  5. [optional] Click the Tasks tab and select any appropriate task to perform during generation (see Generating Java Files).
  6. Click OK to begin generation.

    A progress box is displayed, followed by a Result list. You can use the Edit button in the Result list to edit the generated files individually.

  7. Click Close.

    The ejb-jar.xml deployment descriptor is created in the META-INF directory and all files are generated in the generation directory.