IntelliJ IDEA 13.1 Web Help

Some features described here are available in Ultimate edition only.

IntelliJ IDEA provides a dedicated EJB facet to support EJB technology. If you need to enable EJB in a module, you have to extend this module with the EJB facet that corresponds to the desired specification. If a new module is being created from scratch, it is possible to enable EJB support in the Add Module wizard. If a module already exists, the EJB facet should be added in the Modules Settings dialog box.

Note

Multiple EJB facets are allowed in a single module.

To enable EJB support in a new module
  1. Create a new Java module from scratch.

    On the first page of the wizard, select Java Module, not Web Module. (The Web module type is for developing web applications using programming languages other than Java, for example, PHP, or JavaScript, or markup languages.)

  2. On the Technologies page of the wizard, select the Enterprise JavaBeans check box.
  3. From the drop-down list, select the desired EJB specification.
  4. Click Finish.
To configure EJB support in an existing module
  1. Open the Module Settings dialog box.
  2. With the desired Java module selected, click add.png on the toolbar, and select EJB from the list of facets available for this module.

    As a result, a new EJB facet is created. Its settings are shown on the EJB Facet page in the right-hand part of the dialog.

  3. If necessary, create deployment descriptors:
    • To create a standard EJB deployment descriptor (ejb-jar.xml), click add (Alt+InsertAlt+InsertAlt+InsertAlt+InsertAlt+InsertAlt+InsertAlt+InsertAlt+Insert or Ctrl+NAlt+InsertCommand N or Control EnterControl N or Control EnterCommand N or Control Enter) in the Deployment Descriptors area, select ejb-jar.xml and specify the descriptor location and version in the dialog that opens.
    • To create an application server-specific deployment descriptor, click Add Application Server Specific Descriptor and specify the descriptor properties in the dialog that opens.

    Use edit1 (EnterEnterEnterEnterEnterEnterEnterEnterEnterEnterEnterEnter) or delete (Alt+DeleteAlt+DeleteAlt+DeleteAlt+DeleteAlt+DeleteAlt+DeleteAlt+DeleteAlt+DeleteAlt+DeleteCommand Delete or Command BackspaceCommand DeleteCommand Delete or Command Backspace) to edit or delete selected deployment descriptors.

See Also

Procedures:

Reference:

External Links:

Web Resources: