Java Reference
In-Depth Information
Java EE Containers
Normally, thin-client multitiered applications are hard to write because they involve many
lines of intricate code to handle transaction and state management, multithreading, re-
source pooling, and other complex low-level details. The component-based and platform-
independent Java EE architecture makes Java EE applications easy to write because busi-
ness logic is organized into reusable components. In addition, the Java EE server provides
underlying services in the form of a container for every component type. Because you
do not have to develop these services yourself, you are free to concentrate on solving the
business problem at hand.
Container Services
Containers are the interface between a component and the low-level platform-specific
functionality that supports the component. Before it can be executed, a web, enterprise
bean, or application client component must be assembled into a Java EE module and de-
ployed into its container.
The assembly process involves specifying container settings for each component in the
Java EE application and for the Java EE application itself. Container settings customize
the underlying support provided by the Java EE server, including such services as security,
transaction management, Java Naming and Directory Interface (JNDI) API lookups, and
remote connectivity. Here are some of the highlights.
• The Java EE security model lets you configure a web component or enterprise bean
so that system resources are accessed only by authorized users.
• The Java EE transaction model lets you specify relationships among methods that
make up a single transaction so that all methods in one transaction are treated as a
single unit.
• JNDI lookup services provide a unified interface to multiple naming and directory
services in the enterprise so that application components can access these services.
• The Java EE remote connectivity model manages low-level communications
between clients and enterprise beans. After an enterprise bean is created, a client
invokes methods on it as if it were in the same virtual machine.
Because the Java EE architecture provides configurable services, application components
within the same Java EE application can behave differently based on where they are de-
ployed. For example, an enterprise bean can have security settings that allow it a certain
level of access to database data in one production environment and another level of data-
base access in another production environment.
Search WWH ::




Custom Search