Server User Manual

Table Of Contents
Chapter 3: Creating applications with J2EE technologies 15
Multi-tier applications
handle business logic, all on the client tier. You would use JDBC or Connectors to
access the data on the Enterprise Information System (EIS) tier.
Consider using the client-server model only when the number of desktops running
clients is quite small and will remain so. Once the demand for more than a few client
instances increases, you should probably consider another type of application
architecture.
Multi-tier applications
Here you see the classic multi-tier, distributed architecture that uses three tiers: the
browser on the client tier, the web container and EJB container on the middle tier that
runs on a J2EE server, and the Enterprise Information Systems (EIS) tier that is
managed by a database system. Such an application uses web components such as
JavaServer Pages (JSPs), servlets, and XML to manage the applications presentation
logic. The EJB container contains enterprise beans that respond to requests from the
web tier components and access the data in the EIS tier.
When should you use JavaServer Pages and when should you use servlets?
JavaServer Pages are intended as user interface components. Servlets are usually
used for processing requests and controlling application logic.
XML can be very important in multi-tier applications. XML data messages use HTTP as
their transport protocol. Such data messages can encapsulate all types of data and
respond to a variety of client types, including XML-enabled browsers.
Stand-alone clients
Not all multi-tier applications use a browser on the client tier. Often the client is a Java
client or a client written in another language that consumes dynamic web content or an
application that interacts directly with enterprise beans running in an EJB container.
This diagram shows you the possibilities of this type of application:
Note that this diagram includes the client-server application also as such an application
includes a stand-alone client, too.