J2EE Container - Rochester Institute of Technology

5
1 Web-based Distributed EJB BugsTracker www.cs.rit.edu/~sha5239/msproject San H. Aung 26 September, 2003 2 Outline Project Goal Overview of J2EE Overview of EJBs and its construct Overview of Struts Framework EJB BugsTracker demo Q & A 3 Project Goal Integration effort of 4-tier EJB component architecture: Web browser Web server – Apache Tomcat Jakarta Struts Framework Application server – JBoss Enterprise Java Bean Container-Managed Persistence Database server -- HyperSonic The application is designed and built for software managers, engineers and quality assurance staffs that keep track of the software defects which are produced during the software development life cycle. 4 Overview of J2EE Java Platform 2 Enterprise Edition (J2EE) helps to overcome distribution challenges. Application deployed with J2EE technologies are: Standardized Adherent to specification guidelines Written to Java Deployable in any compliant application server Framework is being widely adopted by vendors: Bea WebLogic Application Server IBM WebSphere Oracle 9iAS Internet Application Server JBoss Application Server 5 J2EE Architecture 6 J2EE Container External Application Java Technologies

Transcript of J2EE Container - Rochester Institute of Technology

Page 1: J2EE Container - Rochester Institute of Technology

1

Web-based Distributed EJB BugsTrackerwww.cs.rit.edu/~sha5239/msproject

San H. Aung26 September, 2003

2

Outline

Project GoalOverview of J2EEOverview of EJBs and its constructOverview of Struts FrameworkEJB BugsTracker demoQ & A

3

Project GoalIntegration effort of 4-tier EJB component architecture:

Web browserWeb server – Apache Tomcat

Jakarta Struts FrameworkApplication server – JBoss

Enterprise Java BeanContainer-Managed Persistence

Database server -- HyperSonicThe application is designed and built for software managers, engineers and quality assurance staffs that keep track of the software defects which are produced during the software development life cycle.

4

Overview of J2EEJava Platform 2 Enterprise Edition (J2EE) helps to overcome distribution challenges.Application deployed with J2EE technologies are:

StandardizedAdherent to specification guidelinesWritten to JavaDeployable in any compliant application server

Framework is being widely adopted by vendors:Bea WebLogic Application Server IBM WebSphereOracle 9iAS Internet Application ServerJBoss Application Server

5

J2EE Architecture

6

J2EE Container

ExternalApplication

Java Technologies

Page 2: J2EE Container - Rochester Institute of Technology

2

7

J2EE ContainerJNDI

Namespaces, ldapJDBC

Database connectivityJAAS

AuthenticationJTA

TransactionsJMX

Management & monitoringJavaMail

EmailEJB

Business logic & data

JMS Messaging

CORBARemote procedure calls

SOAPweb services

RMIRemote method invocation

ServletsWeb logic

JSPWeb presentation

XMLportability

8

Four-Tires Architecture

9

Enterprise JavaBeansEnterprise JavaBeans (EJBs) is a component architecture that defines the structure of beans, the structure of the container in which they operate, and the methods for interaction with their clients.

The EJB specification defines relationships between:The EJB and its containerThe container and the application serverThe container and the client

http://java.sun.com/products/ejb/index.html

10

EJBs – Types of EJBs

The EJB 2.0 specification discusses four types of components:

Stateless session beansStateful session beansEntity beansMessage- driven beans

11

Containers’s Infrastructure

Containers intercept communication between client and component, providing infrastructure services.

12

EJB constructs

Page 3: J2EE Container - Rochester Institute of Technology

3

13

EJB constructs

14

EJBs – Well-Defined Roles

15

Whole Picture

16

Jakarta StrutsStruts uses Model-View-Controller (MVC)

1. Model Components - Access Data and Systems2. View Components - What the users see3. Controller Components - Direct the Action

17

Struts Model Components

Provide ‘Model' of the business logic or data.

Characteristics:Interface to EJB Beans / DatabasesEncode Business Logic & CalculationsInterface to Remote Systems

18

Struts View Components

Presentation layer for interacting with users.

Characteristics:Display data from Model Components Written using JavaServer PagesStruts Tags simplify building Views

Page 4: J2EE Container - Rochester Institute of Technology

4

19

Struts Controller Components

Control Program Flow.

Characteristics:Accept Input from Users Determine which Models to UpdateDetermine which Views to DisplayStruts Tags simplify building Views

20

JBoss Architecture

21

Login Sequence

22

Access Paths

23

Database tables

24

Persistence Entity Beans

Page 5: J2EE Container - Rochester Institute of Technology

5

25

Sessions Beans: Business Logic

26

Value Objects

27

Deliverable Architecture

PresentationLayer

Business LogicLayer

Client Layer

Data Layer

Actions

Session Bean

Entity Bean

Web Browser

Forms

Tomcat Web Server

JBoss Application Server

<<HTTP>>

<<RMI>>

EJB Container

Web Container

Hypersonic database

JSP

28

Deliverable packages

JBoss EJB Components

Web Component (Struts)

Share ValueObjects

29

Annotated references

1. Lennart Jorelid, “J2EE FrontEnd Technologies: A Programmer's Guide to Servlets, JavaServer Pages, and JavaBeans”, December 15, 2001.

2. Ed Roman, Scott W. Ambler, Tyler Jewell, Floyd Marinescu, “Mastering Enterprise Java Beans Second Edition”, December 14, 2001.

3. Monson-Haefel, Richard, “Enterprise JavaBeans, 3rd Edition”, September 2001.4. Scott Stark, Marck Fleury, “JBoss Administration and Developmenty,” The JBoss

Group, January 2002.5. Jim Farley, William Grawford & David Flanagan, “Java Enterprise in a Nutshell,

Second Edition”, April 2002.6. Power Vision, “Building Data-Centric n-Tier Enterprise Systems,”Technical White

Paper, July 2001.7. J2EE Community. “http://www.TheServerSide.com”8. JBoss Application Server, “http://www.jboss.org”9. Jakarta Tomcat. “http://jakarta.apache.org/tomcat/index.html”10. Sun Microsystems, “Enterprise JavaBeans Specification v2.0,”August 2001.

http://java.sun.com/j2ee/11. The J2ee tutorial: http://java.sun.com/j2ee/tutorial/

30