Java Reference
In-Depth Information
Chapter
12.
Using
the
Embedded
Enterprise
Bean
Container
This chapter demonstrates how to use the embedded enterprise bean container to run enter-
prise bean applications in the Java SE environment, outside of a Java EE server.
The following topics are addressed here:
• “ Overview of the Embedded Enterprise Bean Container on page 235
• “ Developing Embeddable Enterprise Bean Applications ” on page 236
• “ The standalone Example Application on page 239
Overview of the Embedded Enterprise Bean Container
The embedded enterprise bean container is used to access enterprise bean components from
client code executed in a Java SE environment. The container and the client code are ex-
ecuted within the same virtual machine. The embedded enterprise bean container is typic-
ally used for testing enterprise beans without having to deploy them to a server.
Most of the services present in the enterprise bean container in a Java EE server are avail-
able in the embedded enterprise bean container, including injection, container-managed
transactions, and security. Enterprise bean components execute similarly in both embedded
and Java EE environments, and therefore the same enterprise bean can be easily reused in
both standalone and networked applications.
Developing Embeddable Enterprise Bean Applications
All embeddable enterprise bean containers support the features listed in Table 12-1 .
Search WWH ::




Custom Search