Naming Conventions for Enterprise Beans
Naming Conventions for Enterprise Beans
Naming Conventions for Enterprise Beans
Because enterprise beans are composed of multiple parts, it's useful to follow a naming
convention for your applications.
summarizes the conventions for the example
beans in this tutorial.
TABLE 202
Naming Conventions for Enterprise Beans
Item
Syntax
Example
Enterprise bean name
nameBean
AccountBean
Enterprise bean class
nameBean
AccountBean
Business interface
name
Account
The Life Cycles of Enterprise Beans
An enterprise bean goes through various stages during its lifetime, or life cycle. Each type of
enterprise bean (stateful session, stateless session, or message-driven) has a different life cycle.
The descriptions that follow refer to methods that are explained along with the code examples
in the next two chapters. If you are new to enterprise beans, you should skip this section and run
the code examples first.
ejb-jar.xml
sun-ejb-jar.xml
MANIFEST.MF
All .class files
for this module
Assembly
Root
META-INF
FIGURE 202
Structure of an Enterprise Bean JAR
The Life Cycles of Enterprise Beans
Chapter 20 · Enterprise Beans
641