Docsity

J2EE Architecture and Component-Based Development in ICE 4203: Web Engineering, Slides of Web Design and Development

Partial preview of the text

Download J2EE Architecture and Component-Based Development in ICE 4203: Web Engineering and more Slides Web Design and Development in PDF only on Docsity!

ICE 4203: Web Engineering

Lecture 5: J2EE Architecture

July – December 2020

Hasan Mahmud Department of Information and Communication Technology (ICT) Bangladesh University of Professionals (BUP)

Contents

• Component architecture

• Java platform, J 2 EE

• J 2 EE Pattern, MVC

• Rapid application development

• Reusability and portability of parts of the

software system

• Decrease of the need for in-house expertise

Why Component architecture

  • Component
    • a reusable program building block for an application;
    • presents a manageable, discrete chunk of logic (functionality);
    • implements a set of well-defined interfaces.
    • Examples: pricing component, billing component, TP monitors
  • Container
    • an application program or a subsystem in which the component lives;
    • Component’s context;
    • creates, manages and “glues” components;
    • provides life cycle management, security, deployment, and runtime
    • services for components it contains (component contract).
    • Examples: Web container (for JSPs, servlets), EJB container (for Ejbeans)

How component architecture

• Development tools

  • for developing components
    • NetBeans (Sun)
    • Eclipse (eclipse.org )

• Deployment tools

  • for configuring (customizing, naming) and packaging components - Asant (Apache Software ant) - NetBeans - Admin console - Deploytool (early versions of Sun’s application server)

Development and Deployment

  • An application server
    • Run time environment for component-based applications
      • Applications are deployed and run on an application server
    • Provides containers and services for applications made of components. - Services: naming, connectivity, persistence, transactions, etc.
    • Provides services for clients
      • Downloadable clients (HTML forms, applets)
    • Some examples:
      • Sun Java System Application Server
      • IBM WebSphere
      • BEA WebLogic Server
      • Voyager® Application Server (Object Space)
      • iPortal Application Server (IONA)
      • JBoss Application Server (Now, renamed to WildFly AS)

Application Servers

Server side components

Component architecture – existing approaches

  • J 2 EE establishes standards for areas of enterprise computing needs such as database connectivity, enterprise business components, message- oriented middleware (MOM), Web-related components, communication protocols, and interoperability.
  • J 2 EE provides a standard platform for building software components that are portable across vendor implementations
  • J 2 EE increases programmer productivity, since Java programmers can relatively easily learn J 2 EE technologies based on the Java language. All enterprise software development can be accomplished under the J 2 EE platform, using Java as the programming language.
  • J 2 EE promotes interoperability within existing heterogeneous environments.

Benefits of J2EE

  • Targeted at the development of N- tier architectures: - Business Logic components are reusable and portable - Application server must follow the contract and provide agreed unified set of services

J2EE architecture

  • Business tier
    • This tier handles the core business logic of the application.
    • The business tier provides the necessary interfaces to the underlying business service components.
    • The business components are typically implemented as EJB components with support from an EJB container that facilitates the component life cycle and manages persistence, transactions, and resource allocation.
  • EIS tier
    • This tier is responsible for the enterprise information systems, including database systems, transaction processing systems, legacy systems, and enterprise resource planning systems.
    • The EIS tier is the point where J 2 EE applications integrate with non-J 2 EE or legacy systems.

J2EE architecture…

Enterprise application technologies

Web services technologies

J2EE server: An application server