Java Reference
In-Depth Information
The next dialog prompts you to select the application server for which
this
J2EE
application is being written. Select
Web l og i c
. The created mod-
ule is associated with the corresponding configuration and can be
deployed to the WebLogic application server. WebLogic-specific deploy-
ment descriptors (weblogic-ejb-jar.xml and webvblogic-cmp-rdbms-ejb-
jar.xml) are created for the module. Click
Next
.
6
In this step you can define paths to WebLogic-specific deployment
descriptors (weblogic-ejb-jar.xml and weblogic-cmp-rdbms-ejb-jar.xml)
and their versions created for the module. Click the
Finish
button to fin-
ish the process.
7
Configuring your EJB module
You can configure your
EJB
module settings with
EJB
Module Settings
and
J2EE
Build Settings
tabs of the
Paths
dialog. The
EJB
Module Settings
tab, shown in
figure 11.8, lets you change the binding of your
EJB
module to particular appli-
cation server (you can add and choose another application server here by clicking
the
Configure
button).
The
Deployment Descriptors
group lets you change the location of your
deployment descriptors. You can also specify additional deployment descriptors
required for your server (this is especially important when you define settings
manually for generic application servers).
The
Module and Libraries to Package
group lets you control packaging of
your
EJB
. Each library or module used by a given
EJB
module (configured in the
Libraries(Classpath)
and
Dependencies
tabs) appears in this table so you can set
how to package them during build. You configure this section in much the same
way as the
Modules and Libraries to Package
section of
Web Module Settings
.
The
J2EE
Build Settings
tab, shown in figure 11.9, lets you control how your
EJB
module is built. Building an
EJB
module is similar to building a web module.
Naming J2EE items in IDEA
Naming
J2EE
items is a boring task, because you want to have more or less similar
names for all components with similar functions. Creating new names and, most
important, following your own conventions may be a big job, especially for large
and complicated projects with lots of components, modules, and elements. Fortu-
nately,
IDEA
helps you to create
J2EE
names that match
J2EE
coding practice.
You can set names for
J2EE
items in the
J2EE
Names
tab of the
Code Style
set-
tings dialog, shown in figure 11.10.