Java Reference
In-Depth Information
com/jadol/budgetpro/MoneyEJBean.class
com/jadol/budgetpro/MoneyHome.class
com/jadol/budgetpro/Money.class
com/jadol/budgetpro/MoneyLocalHome.class
com/jadol/budgetpro/TestMoneyEJBean.class
net/multitool/util/Save.class
net/multitool/util/Cost.class
net/multitool/util/Debt.class
net/multitool/util/SAMoney.class
META-INF/ejb-jar.xml
META-INF/jboss.xml
$
The EJB-JAR file contains the specifics for our EJB file (Table 23.2).
To keep Table 23.2 simpler and shorter, we didn't list each of the directo-
ries in the tree of directories down to each class file. When we show, for exam-
ple, com/jadol/budgetpro/* , realize that each directory that is part of that
structure ( com , com/jadol , and so on) is part of the JAR file. The class files
are located in that tree.
So what are the two XML files?
These XML files provide the EJB container with information on how the
bean parts are wired together. Let's look at the contents of each.
Table 23.2 Contents of the EJB-JAR file
Name
Type
Content
text
A standard JAR manifest; besides defining the
JAR version it can be empty.
MANIFEST.MF
XML
A description of the EJB, most importantly the
mapping between the name of the EJB and the
actual Java class file.
ejb-jar.xml
XML
This file is specific to JBoss (well, duh!). It
describes a mapping between the JNDI name
used in the locate() and the name of the EJB.
The equivalent file for Geronimo (which uses
OpenEJB) is openejb-jar.xml .
jboss.xml
class files
Various classes.
net/multitool/util/*
class files
Various classes.
com/jadol/budgetpro/*
directory
A directory with other files.
META-INF
Search WWH ::




Custom Search