Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Application Servers
Chapter 4: Essential Software Architecture
Middleware Classification
BizTalk, TIBCO StaffWare, ActiveBPEL BizTalk, WebSphere Message Broker, SonicMQ J2EE, CCM, .NET
Application Servers
An application server is a component-based server technology It resides in the middle-tier of an N-tier architecture, It provides distributed communications, security, transactions and persistence We will cover an overview of Java EE and EJB
Internet InterORB Protocol IIOP.NET allows a seamless interoperation between .NET, CORBA and J2EE distributed objects.
http://www.codeproject.com/Articles/4450/Building-a-Distributed-Object-System-with-NET-and
The client tier typically comprises an Internet browser that submits HTTP requests and downloads HTML pages from a web server. This is commodity technology, not an element of the application server.
The web tier runs a web server to handle client requests. When a request arrives, the web server invokes web server-hosted components such as Servlets, Java Server Pages (JSPs) or Active Server Pages (ASPs) depending on the flavor of web server being used.
6
Servlet vs JSPs
Servlet is html in java JSP is java in html. Also ASP is asp (jscript/vbscript) in html
JSP is a webpage scripting language that can generate dynamic content while Servlets are Java programs that are already compiled which also creates dynamic web content Servlets run faster compared to JSP JSP can be compiled into Java Servlets Its easier to code in JSP than in Java Servlets In MVC, JSP act as a view and servlet act as a controller. See more here: http://stackoverflow.com/questions/4965914/java-jsp-vs-servlet
The business components comprise the core business logic for the application. The business components are realized by, e.g., Enterprise JavaBeans (EJB) in JEE, .NET components or CORBA objects.
A run-time environment called container accommodates the components. The container supplies a number of services to the components it hosts. These vary depending on the container type but include transaction and component lifecycle management, state management; security, multithreading and resource pooling.
EJB are components meant to encapsulate business logic They do not handle presentation. EJBs execute inside an EJB container A very common model is for a servlet to act as a client of a session bean (a kind of EJB) One of the ideas behind EJBs is to componentize server-side business logic and move it closer to the database. EJBs and servlets will typically not run on the same server. A key thing to remember is that both EJBs and servlets must execute inside of a container.
For servlets, this is usually a Web server interfaced with a servlet engine. For EJBs, this is an EJB server such as the reference implementation provided with the Java 2 EE
9
This typically consists of one or more databases and back-end applications like mainframes and other legacy systems. The business components must query and interact with these data stores to process requests
10
J2EE Vision
11
13
MODEL
(e.g., JAVA BEANS/ EJB)
DB
EJB container
15
16
DEVELOPMENT of makeMyTrip.com
CLIENT JMS SERVLET J D B C
BANK
JSP EJB/MODEL
DB
JAX-RPC
RMI-IIOP JAVA-IDL
SOAP
SOAP
JCA
CORBA
SHAHEEN Airways
PIA ON MAINFRAMES
17
RMI-IIOP is the method that is chosen by Java programmers who want to use the RMI interfaces, but use IIOP as the transport. RMI-IIOP requires that all remote interfaces are defined as Java RMI interfaces. Java IDL is an alternative solution, intended for CORBA programmers who want to program in Java to implement objects that are defined in IDL.
18
JAX-RPC
JAX-RPC stands for Java API for XML-based RPC. It's an API for building Web services and clients that used remote procedure calls (RPC) and XML. In JAX-RPC, a remote procedure call is represented by an XML-based protocol such as SOAP. The SOAP specification defines:
envelope structure, encoding rules, and a convention for representing remote procedure calls and responses.
These calls and responses are transmitted as SOAP messages over HTTP
19
The J2EE Connector architecture defines a standard architecture for connecting the J2EE platform to heterogeneous EIS systems. Examples of EIS systems include ERP, mainframe transaction processing, database systems, and legacy applications - not written in the Java programming language.
20
Connectors Summary
Client tier Web Tier Business Component tier EIS Tier
Web server
RMI
Servlets, JSPs Application components EJBs
JCA
JDBC RDBMS
21
Assignment # 3
Write one 10 page summary on 10 of the following APIs. One page each. Submission 13th week (8 May 13)
22
END
23