IntelliJ IDEA 2021.1 Help

Migrate to EJB 3.0

If you want to use the advantages of EJB 3.0 specification, you can migrate your existing beans of the various types from EJB 1.x or 2.0 to EJB 3.0. IntelliJ IDEA suggests the Apply EJB 3.0 Style refactoring that brings the structure of the beans into compliance with the requirements of EJB 3.0 specification.

To migrate a bean to EJB 3.0 specification

  1. Open the EJB tool window.

  2. Select the desired module, or bean, to be migrated, and choose Apply EJB 3.0 Style on the context menu.

  3. In the Apply EJB 3.0 Style dialog box displaying the list of all items within the module, select the ones to be migrated:

    If you want to convert home interfaces rather than remove them, select the Retain Home INterfaces checkbox, where applicable.

  4. Configure the environment access and XML descriptor options. Refer to the Apply EJB 3.0 Style dialog for the detailed description of options.

  5. Though you can click Refactor and perform migration straight away, it is recommended to click Preview first, and explore the tentative migration results in the Find tool window.

  6. In the Find tool window, click Do Refactor.

Last modified: 08 March 2021