IntelliJ IDEA

EJB


IntelliJ IDEA features rich support for EJB development. Supporting EJB specifications from 1.x to 3.1 and leveraging it through all its features, from coding assistance to refactoring, IntelliJ IDEA stands for the weapon of choice for developing EJB applications.

IntelliJ IDEA leverages all EJB in the dedicated module type — the EJB Module, which lets you handle EJB and relevant objects (ejb-jar.xml and other descriptors, EJB security and EJB deployment settings, etc.) under one functional entity. This simplifies EJB applications development, debugging and deployment.

Live Demo: Web and Enterprise Development


EJB 3.1 specific features

IntelliJ IDEA supports the improvements introduced in EJB 3.1, including support for EJB 3.1 @Singleton Session Bean:
EJB 3.1 Singleton Session Bean

EJB 3.0 specific features

IntelliJ IDEA fully supports annotation mechanism for creating EJB, and Interceptors, with automatic code generation, completion and dedicated binding editor.

Additionally, IntelliJ IDEA supports entity listeners and Embeddable Enterprise Beans.

For your existing EJB projects (versions 1.x and 2.x), IntelliJ IDEA provides the migration to EJB 3.0 that includes:

  • Converting EJB environment access
  • Rebuilding EJB deployment descriptors
  • Transforming EJB interfaces
  • Turning Entity Beans into Container Managed Persistence

General EJB features

IntelliJ IDEA eliminates routine work through generating stub code for entity EJB, session EJB, message EJB and other EJB types, CMP EJB fields and EJB relationships. Dedicated context editors also help modify EJB and their properties.

EJB session

IntelliJ IDEA automatically builds standard EJB deployment packages either in JAR or exploded directory format and automatically generates appropriate EJB XML descriptors for all EJB included in the module (ejb-jar.xml).

EJB-aware coding assistance

IntelliJ IDEA leverages code completion for both EJB code and descriptor files:

EJB Completion

It also supports EJB error highlighting: IntelliJ IDEA continuously checks your EJB source code for EJB specification compliance, so that all possible inconsistencies are immediately detected and highlighted in the editor.

EJB error

EJB intention actions and quick fixes: For most EJB errors detected in your code, IntelliJ IDEA will provide you with the ability to automatically correct the erroneous code by showing an intention action light bulb in the editor that expands into a list of possible corrections.

Powerful EJB-aware refactorings

All global refactorings, like Rename, Change Method Signature, etc., are aware of the EJB specification and will therefore correct all necessary references in your code so that your EJB structure is not broken. Refactorings also apply to all XML descriptors to ensure the total integrity.

Structure View and GUI Editors

Dedicated GUI tools are provided for viewing EJB structure and convenient editing of XML descriptors, so you can easily create and modify all EJB and relevant objects (ejb-jar.xml and other descriptors, EJB security and EJB deployment settings, etc.)

EJB session

to the top