Deleting EJB 3.x beans

Once you have created an Enterprise Java™ bean, you might want to delete it. The instructions in this document describe the basic steps that you can take to delete the bean.

About this task

When you create an EJB project, code is generated in files as part of the process of creating the project. After you delete a module or a bean in a Java EE project, the affected files are also cleaned up. To delete a web module, EJB module, Application Client module, Connector module, or EJB client, or utility module:

Procedure

  1. Right-click the EJB project that you want to delete, and select Delete. Alternatively, you can select the module in the project view, and press Delete. A dialog box appears, confirming the delete.
  2. Select Preview. A refactoring page appears listing the items affected by your delete action.
    Delete EJB project
  3. To delete an individual bean from your EJB project, locate the bean under your project folder, right-click the bean that you want to delete, and select Delete. Alternatively, you can select the bean in the project view, and press Delete. A dialog box appears, confirming the delete.
    Delete individual bean
Icon that indicates the type of topic Task topic
Timestamp icon Last updated: July 17, 2017 21:58

File name: tdeletejb3.html