-
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.)
- On the Technologies page of the wizard, select the Enterprise JavaBeans check box.
- From the drop-down list, select the desired EJB specification.
- Click Finish.
- Open the Module Settings dialog box.
- With the desired Java module selected, click
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.
-
If necessary, create deployment descriptors:
- To create a standard EJB deployment descriptor (ejb-jar.xml),
click
(Alt+InsertCommand N; Command 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
(EnterEnter) or
(Alt+DeleteCommand Delete) to edit or delete selected deployment descriptors. - To create a standard EJB deployment descriptor (ejb-jar.xml),
click

