Server User Manual

Table Of Contents
Chapter 3: Creating applications with J2EE technologies 17
Web-centric applications
Web-centric applications
There are times when your application just doesnt need to use enterprise beans and if
you do so, you add a layer of complexity. If your application doesnt require
transactions on a distributed system, consider a web-centric application model:
This scenario puts both the presentation and business logic on the web tier. The web
container can host JavaServer Pages and servlets. The client is simply a browser and
data is transferred using XML, HTTP protocol, and/or HTML pages. Servlets can
access the EIS tier, when necessary, using JDBC or connectors. Applications using
this type of architecture are quite common.
Business to business
When you need a web-based commerce solution, consider the business-to-business
model. This might include multiple web containers and multiple EJB containers.
Web container to web container architecture is suitable for ecommerce solutions.
Communication takes place through XML data message over HTTP. Such applications
are very loosely coupled.
Peer-to-peer communication between EJB containers offers a more tightly coupled
model that works well for intranet solutions. In these types of applications, seriously
consider using message-driven enterprise beans and Java Message Service (JMS),
which enable you to develop loosely coupled applications.