Java Reference
In-Depth Information
J2EE client-layer components such as applets or rich GUI clients. We touched on
support for web layer development with web modules earlier in this chapter.
Let's get closer to EJB support in IDEA .
Exploring the full extent of the EJB and other J2EE technologies is beyond the
scope of this book, and we're going to assume that you have some degree of famili-
arity with those technologies. The following material focuses on IDEA 's support
for working with J2EE applications.
11.2.1
Working with EJB modules
The EJB module is extension of the Java module and is created separately for a
group of related EJB s and their deployment descriptors. There is one EJB stan-
dard deployment descriptor (ejb-jar.xml) and a number of application server-
specific ones—for instance, weblogic-ejb-jar.xml and weblogic-cmp-rdbms-ejb-
jar.xml for the WebLogic application server. Deployment descriptors are XML
documents describing EJB s and EJB module properties. They're designed to be
used for deploying J2EE components.
Creating a new EJB module
Extending your tool functionality, let's add a new EJB module. Start by following
these steps:
Select File | New Module from the main menu.
1
The first dialog in the New Module wizard appears and prompts you to
select the type of module to create. Click the EJB Module option, and
then click Next .
2
The next dialog prompts you to select a module name and a module
content root. Enter ACMEEjb as the module name, and specify the module
content root to be a sibling directory to the currency converter's Java
module (for example, if the module you've been working on can be
found in the C :\Projects\CurrencyConverter directory, make this module
use the C :\Projects\ ACMEE jb directory). Click Next .
3
The next dialog prompts you to specify a source directory for the EJB
module. This is where the source files for any custom Java classes will
reside. The default suggestion of src is fine, so click Next .
4
The next dialog prompts you to specify a compiler output path for the
for the EJB module. Accept the name suggested by IDEA , and click Next
to continue.
5
 
 
 
Search WWH ::




Custom Search