J2EE Platform: Features, Components, and Case Study, Slides of Computer Science

An overview of the j2ee platform, its history, goals, definitions of key components such as jsp, jms, jndi, jax-rpc, and jaxr, and features like distributed processing. It also includes a case study on the j2ee architecture and the use of entity beans and session beans.

Typology: Slides

2012/2013

Uploaded on 03/27/2013

ekana
ekana 🇮🇳

4

(44)

370 documents

1 / 49

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
A Case Study on the J2EE Platform
Docsity.com
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31

Partial preview of the text

Download J2EE Platform: Features, Components, and Case Study and more Slides Computer Science in PDF only on Docsity!

A Case Study on the J2EE Platform

History

Transaction Processor

  • Solves the following business needs:
    • Guarantees transactional integrity.
      • Several statements executed together as a logical unit.
      • Either all statements execute successfully or none are executed.
      • Uses BEGIN, COMMIT, and ROLLBACK primitives.
    • Manages the execution of programs and the sharing of resources. - Can maintain a pool of running program instances. - Hands instances out to users as needed. - Size of pool based on current user load. - Allows a system to support many more concurrent users than possible if providing duplicate resources for each user.
  • From The Java Language: An Overview :

What is Java?

http://java.sun.com/docs/overviews/java/java-overview-1.html

Java: A simple, object-oriented, network-savvy, interpreted, robust, secure, architecture neutral, portable, high-performance, multithreaded, dynamic language.

  • Designed to support multiple threads of execution

that can handle different tasks.

  • Improves interactive performance of GUI apps.
  • Provides built-in language support...
    • Thread class in java.lang package.
      • used to start/run/stop/query threads.
    • Includes set of synchronization primitives...
      • synchronized keyword.
      • wait()and notify() methods.

Java is Multithreaded

“Java makes programming with threads much easier.. .”

Goal

Definitions

J2EE Definitions

  • JavaServer Pages (JSP)
    • Provides the ability to “ put snippets of Java code directly into a text-based document. A JSP page is a text-based document that contains two types of text: static template data, which can be expressed in any text-based format such as HTML, WML, and XML, and JSP elements, which determine how the page constructs dynamic content .”
  • Servlets
    • Provides the ability to “ define HTTP-specific servlet classes. A servlet class extends the capabilities of servers that host applications accessed by way of a request-response programming model .”

Selected J2EE Component Definitions

  • Java Naming and Directory Interface (JNDI)
    • “Provides naming and directory functionality. It provides applications with methods for performing standard directory operations, such as associating attributes with objects and searching for objects using their attributes”.
  • Remote Method Invocation (RMI)
    • Provides the ability for “an object running in one Java Virtual Machine (JVM) to invoke methods on an object running in another JVM. RMI provides for remote communication between programs written in the Java programming language”.

Selected J2EE Component Definitions

  • Java API for XML – Remote Procedure Call

(JAX-RPC)

  • “Uses the SOAP standard and HTTP so client programs can make XML-based remote procedure calls (RPCs) over the Internet. JAX-RPC also supports WSDL so you can import and export WSDL documents”.
  • SOAP with Attachments API for Java (SAAJ)
  • Provides “ a low-level API upon which JAX-RPC depends. It enables the production and consumption of messages that conform to the SOAP 1. specification and SOAP with Attachments note”.

Selected J2EE Component Definitions

  • Common Object Request Broker Architecture

(CORBA)

  • An open, vendor-independent architecture and infrastructure created by the Object Management Group (OMG) that allows a CORBA-based program from any vendor, on almost any computer, operating system, programming language, and network, can interoperate with another CORBA-based program from the same or another vendor, on almost any other computer, operating system, programming language, and network.

A paraphrase taken from the CORBA FAQ See http://www.omg.org/gettingstarted/corbafaq.htm

Features

Structure

J2EE Platform Architecture Diagram