Docsity

Understanding J2EE Application Servers and EJBs: A Comprehensive Guide, Slides of Internet and Information Access

Partial preview of the text

Download Understanding J2EE Application Servers and EJBs: A Comprehensive Guide and more Slides Internet and Information Access in PDF only on Docsity!

1

Agenda

  1. Application servers
  2. What is J2EE?  Main component types  Application Scenarios  J2EE APIs and Services
  3. EJB – a closer look
  4. Examples

2

1. Application Servers

  • In the beginning, there was darkness and cold. Then, …

Centralized, non-distributed

terminals

mainframe

terminals

4

Application Servers

  • Today, enterprise applications use the multi-tier model

5

Application Servers

  • “Multi-tier applications” have several independent components
  • An application server provides the infrastructure and services to run such applications

7

J2EE Application Servers

  • Major J2EE products:
    • BEA WebLogic
    • IBM WebSphere
    • Sun iPlanet Application Server
    • Oracle 9iAS
    • HP/Bluestone Total-e-Server
    • Borland AppServer
    • Jboss (free open source)

8

Web Server and Application Server

Web Server (HTTP Server)

App Server 1

App Server 2

Internet Browser

HTTP(S)

10

J2EE Benefits

  • High availability
  • Scalability
  • Integration with existing systems
  • Freedom to choose vendors of application servers, tools, components
  • Multi-platform

11

J2EE Benefits

  • Flexibility of scenarios and support to several types of clients
  • Programming productivity:
    • Services allow developer to focus on business
    • Component development facilitates maintenance and reuse
    • Enables deploy-time behaviors
    • Supports division of labor

13

JSP

  • Used for web pages with dynamic content
  • Processes HTTP requests (non-blocking call-and- return)
  • Accepts HTML tags, special JSP tags, and scriptlets of Java code
  • Separates static content from presentation logic
  • Can be created by web designer using HTML tools

14

Servlet

  • Used for web pages with dynamic content
  • Processes HTTP requests (non-blocking call-and-return)
  • Written in Java; uses print statements to render HTML
  • Loaded into memory once and then called many times
  • Provides APIs for session management

16

J2EE Multi-tier Model

17

J2EE Application Scenarios

  • Multi-tier typical application

19

J2EE Application Scenarios

  • Web-centric application

20

J2EE Application Scenarios

  • Business-to-business