How Do I: Create an Enterprise JavaBean?

To create an Enterprise JavaBean, you must have an EJB Project. For more information, see How Do I Create an EJB Project?

To Create an EJB

  1. Right-click the EJB project folder in the Application pane.
  2. Select New-->Folder, and give the folder an appropriate name corresponding to the Java package name for the EJB. Create subfolders if necessary to reflect the package name.
  3. Right-click the lowest folder in the package name, choose New, and select Entity Bean, Message-driven bean, or Session bean. The New File dialog appears.

    It is also possible to create an entity bean from a database table. For more information, see How Do I: Generate an Entity Bean from a Database Table?

  4. In the file name field, enter a name for the EJB file. The file name must have an ejb extension.
  5. Click Create.

Related Topics

How Do I: Add a Create Method to an Entity Bean?

How Do I: Generate an Entity Bean from a Database Table?

How Do I: Test an Enterprise JavaBean?

Developing Enterprise JavaBeans