• Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

Card Range To Study

through

image

Play button

image

Play button

image

Progress

1/35

Click to flip

Use LEFT and RIGHT arrow keys to navigate between flashcards;

Use UP and DOWN arrow keys to flip the card;

H to show hint;

A reads text to speech;

35 Cards in this Set

  • Front
  • Back
Java EE Client-Server Architecture: 5 Layers
1) Data Source Layer
2) Data Mapping Layer
3) Business Logic Layer/Domain Logic Layer/EJB Container Layer
4) Web Container Layer
5) Client Presentation Layer
Data Source Layer (technologies)
Relational DBMS such as DB2, Oracle DBMS, SQL Server
Data Mapping Layer
JDBC (Java Database Connectivity), Entity EJBs

load into memory
Business Logic Layer/Domain Logic Layer/EJB Container Layer (technologies)
* Enterprise JavaBeans (EJB)


* http://www.tutorialspoint.com/ejb/
* a development architecture for building highly scalable & robust enterprise level applications to be deployed on a J2EE compliant Application Server (e.g., JBOSS, Web Logic, etc.)

* Business Logic

* the part of the program that encodes the real-world business rules that determine how data can be created, stored, & manipulated
* see wiki

* EJB Container

* provides a run-time environment for EJBs within the application server
* acts an an intermediary b/t the business logic within the bean and the rest of the application-server environment
Web Container Layer (technologies)
Servlets
JavaServer Faces (JSF)
JavaServer Pages (JSP)
JavaServer Page (JSP)
A JSP is a template for a Web page with dynamic content created by using Java code and special server-side HTML tags, along with standard HTML.

WIKI
a technology that helps software developers create dynamically generated web pages based on HTML, XML, or other document types
JavaServer Faces (JSF)
a Java specification for building component-based user interfaces for web applications

MVC
Java Servlet Struts Framework (Apache Struts)
a web app framework for developing Java EE web apps
Client Presentation Layer (technologies)
JavaScript
XML
AJAX
XHTML
CSS
XSLT
DOM
AJAX
Asynchronous JavaScript and XML
DOM
Document Object Model

The Document Object Model (DOM) is a cross-platform and language-independent convention for representing and interacting with objects in HTML, XHTML and XML documents.
XSLT
XSLT (Extensible Stylesheet Language Transformations) is a language for transforming XML documents into other XML documents,[1] or other objects such as HTML for web pages, plain text or into XSL Formatting Objects which can then be converted to PDF, PostScript and PNG.[2]
Container
Containers are basically run-time environments that provide components with specific services.
Web Container
Web containers provide run-time support to clients by processing requests through invoking JSPs and servlets and returning results from the components to the client.
EJB Containers
EJB containers provide automated support for transaction and state management of EJB components, as well as look up and security services.
HTTP
HTTP is the protocol used on top of the TCP/IP protocol to enable the communication between the Client and the Server in a Request/Response-oriented manner over a network (e.g., Internet).
HTTP (notes)
...
 Is an application-level protocol for distributed, collaborative, hypermedia information systems.
 Is a request/response-oriented protocol.
 Is connectionless (CL-mode)
 Is stateless (the new version has improved on this capability)
 Is based on a Web server – sometimes referred to as HTTPD, for HTTP daemon.
URL
Uniform Resource Locator (URL) uniquely identifies a Web resource – an HTML page, a JSP page, a Servlet, an image, etc.
 Format: protocol://hostname<:port>/identifiers
 Example: http://manta.cs.vt.edu:80/cs5704/Course.html#CourseDescription
URI
Uniform Resource Identifier (URI) is a formatted string that identifies a Web resource via name, location, or any other characteristic relative to a known base.


 Example:
 /cs5704/Course.html#CourseDescription
where http://manta.cs.vt.edu:80 is the base (server) address.
URI benefit
 By referring to only a partial address, URI, you keep your HTML tags and JSP servlet code from being tied to a single machine name.
 Therefore, URIs provide maintainability of your code.
HTTP: GET
“get a file and return its contents"

The GET method means retrieve whatever information (in the form of an entity) is identified by the Request-URI

conditional GET

partial GET
HTTP: POST
Happens, usually, when you fill out an HTML form and click the Submit button.

Designed to send large amounts of data to the server.
 May have multiple connections to the server. The first is to send the request; subsequent ones may then be used to send the data to the server.
POST
The POST method is used to request that the origin server accept the entity enclosed in the request as a new subordinate of the resource identified by the Request-URI in the Request-Line.
applet
An Applet is a small Java program, which is downloaded and executed entirely within a Java Runtime Environment (JRE) *on the client machine.*
servlet
A Servlet is a small Java program, which is executed entirely within a Java Virtual Machine (JVM) *on the Server computer.*
JSPs are run in a _____-side component called a ___ __________ which translate them into Java Servlets
JSPs are run in a server-side component known as a JSP container, which translates them into Java Servlets.
a JSP page exists in 3 forms
1) JSP Source code (.jsp)
2) Java Source Code (The JSP constainer translates the JSP source code into Java Servlet source code)
3) Compiled Java Class (.class)

.jsp-->.java-->.class
EJB defn
An EJB is a component Java program that implements business logic in a distributed enterprise application.
4 things provided by EJB Container
1. Security,
2. Concurrency,
3. Transaction Support, and
4. Memory management, swapping unused EJBs from memory to secondary storage.
2 types EJBs
1) Session
2) Entity
Session EJBs
1. Executes methods on behalf of a client
2. Does not directly represent shared data in the database, although it may
3. Can direct and participate in transactions
Entity EJBs
1. Represents data in a database
2. Can participate in transactions
3. Allows shared access from multiple users
MVC Paradigm - Model
1. Objects of different classes provide services related to the application domain
2. Business logic implementation
MVC Paradigm - View
1. The display of the application’s state
2. Presentation layer
MVC Paradigm - Controller
1. The user interaction between the Model and the View.
2. Adapts the Model-layer objects to those needed by the View layer and mediate among various parts of the View layer by dealing with navigation and error-handling and reporting duties.