You are on page 1of 19

Challenges of Enterprise

Application Development

Lecture#4
Session Outline

 The Platform for Enterprise Solutions


 J2EE Platform Overview
 Multi-tier Model
 Container Based-Component Model
 Support for Client Component
 Support for Business Logic Components
 J2EE Standards
The Platform for Enterprise
Solutions
 Java provide single standard J2EE for
implementing and deploying EA
 Success of J2EE standard was
 Designed through open process
 Engaging a range of enterprise computing
vendors
 Meets the widest possible range of enterprise
application requirements
 Addresses the core issues that slow down
organizations’ efforts to maintain a competitive
pace in the information economy.
J2EE Platform Overview

 J2EE designed to support client-server,


multitier and distributed applications
 Such
Applications has
3 tiers
 Client tier

 Middle tier

 Back-end tier
J2EE Platform Overview

 Some are the important characteristics of


J2EE Platform
 Applets and JavaBeans
 Multitier Model
 Container Based Component Management
 Support for Client Components
 Support for Business Logic
 Support for J2EE Standards
Applets and Java Beans

 Applets
 Applets are small applications that are accessed
on an Internet server
 Transported over the Internet
 Automatically installed, and run as part of a web
document
 Limited access to resources on client
 Provide GUI, run complex computations and avoid it
from viruses
Applets and Java Beans

 Java Beans
 A software component that has been designed to
be reusable in a variety of different environments
 There is no restriction on the capability of a Bean
 It may perform a simple to complex functions
 A Bean may be visible to user
 GUI button
 A Bean may be invisible to user
 decode a stream of multimedia information in real time
Multitier Model
 J2EE platform provides a multitier distributed
application model
 various parts of an application can run on different
devices
 J2EE provide 3 tiers
 A Client tier- for clients with firewalls
 Middle tier (one or more tiers)- provide
 Client services in web container using web tier
 Business logic through Enterprise Java Beans EJB tier
 A back-end tier provide information system using
Enterprise Information System EIS Tier
Container-Based Component
Management
 J2EE is component based model that is based on
containers
 Containers are standardized runtime environments that
provide specific services to components
 Components can expect these services to be available
on any J2EE platform from any vendor
 For example J2EE web container responds to clients
requests
 Accept requests from the client

 Performing request-time processing

 Returning results to the client


Container-Based Component
Management
 All EJB containers provide automated
support for transaction
 Life cycle management of EJB components
 Bean lookup and other services
 Standardized way to access EIS
 A mechanism for selecting application behaviors
at assembly or deployment time
 Security checks, transaction control and management
 J2EE specification defines the component containers but
doesn’t specify or restrict the containers’ configurations
Support for Client Components

 J2EE client tier provides support for a variety


of client types
 Both within the enterprise firewall and outside
 Clients can be offered through Web browsers by
 Using plain HTML pages
 HTML generated dynamically by JavaServer Pages
 JSP technology, or Java applets
 Clients are assumed to access the middle tier
primarily using Web standards
 Namely HTTP, HTML, and XML
Support for Client Components

 Complex user interaction using


 JavaBeans components that interact with middle
tier using servlets
 JavaBeans components are provided as service
as applet that downloads into user browser
 To over come issues of old and non-standard
versions JVM support automatically
downloading and installing the Java plug-ins
 J2EE supports alternate client models easily
Support for Client Components
 Client-tier beans can also be contained in a
stand-alone application
 Java Web Start technology makes application
deployment portable
 by providing browser-based download and
installation mechanisms
 This ensures that users can always access
and work with the latest versions of standalone
application clients
 Non-java clients can also provide J2EE
services using servlets from middle tier
Support for Business Logic
Components
 Simple application can be built in client tier
 Business logic is implemented in middle tier
using EJB components
 EJB components facilitate developer:
 Focus on business logic of application
 Other complexities, reliability, scalability are
handled by EJB
 EJB components are backbone of industrial-
strength application architectures
Support for Business Logic
Components
 The J2EE platform complements the EJB
specification by
 Fully specifying the APIs that an enterprise bean
developer can use to implement enterprise beans
 Defining the larger, distributed programming
environment in which enterprise beans are used
as business logic component
Support for the J2EE Standard

 The J2EE standard is defined through a set


of related specifications
 J2EE specification: the Enterprise JavaBeans
specification, the Java Servlet specification, and
the JavaServer Pages specification
 Other specification: J2EE Compatibility Test Suite,
the J2EE reference implementation, the J2EE
SDK
Support for the J2EE Standard

 J2EE Compatibility Test Suite (CTS) helps


maximize the portability of applications
 Test suite begins where the basic Java
Conformance Kit (JCK) leaves off
 CTS has APIs that are not covered by JCK
 CTS tests a J2EE platform’s ability to run
standard end-to-end applications
Support for the J2EE Standard

 The J2EE reference implementation, a


complete implementation of the J2EE standard
 Represents an operational definition of the J2EE
platform
 A standard platform for running the J2EE
Compatibility Test Suite
 It can be used by developers to verify the portability
of an application
 It is available in both binary and source code form
Support for the J2EE Standard
 J2EE SDK is available in both binary and
source code form
 Free for developers to adopt J2EE standard
 Neither commercial product nor for commercial
use
 Can be used to develop prototypes and demos
 Also include application verification and
deployment tools to simplify development
 Also includes J2EE Tutorial, which provides step
by step examples and information that developers
need to begin working with the platform

You might also like