18
3/2/2008 Varun Arora @ SICSR M.Sc. (CA)2007-’09 1 Middleware By: Varun Arora [email protected] www.varunarora.in

Middleware Basics

Embed Size (px)

DESCRIPTION

 

Citation preview

Page 1: Middleware Basics

3/2/2008 Varun Arora @ SICSR M.Sc.(CA)2007-’09 1

Middleware

By:

Varun Arora

[email protected]

www.varunarora.in

Page 2: Middleware Basics

3/2/2008 Varun Arora @ SICSR M.Sc.(CA)2007-’09 2

Table of Contents

Middleware Use Middleware Types Message Oriented Middleware Advantages Products Architectural Significance

Page 3: Middleware Basics

3/2/2008 Varun Arora @ SICSR M.Sc.(CA)2007-’09 3

Middleware - Definition

Middleware is connectivity software that consists of a set of enabling services that allow multiple processes running on one or more machines to interact with each other.

Page 4: Middleware Basics

3/2/2008 Varun Arora @ SICSR M.Sc.(CA)2007-’09 4

Middleware – Technical Detail

Middleware services are sets of distributed software that exist between the application and the operating system and network services on a system node in the network.

Page 5: Middleware Basics

3/2/2008 Varun Arora @ SICSR M.Sc.(CA)2007-’09 5

Middleware – Use

API

Middleware (Distributed System Services)

PlatformOS

Application Application

Platform interface Platform interface

PlatformOS

Page 6: Middleware Basics

3/2/2008 Varun Arora @ SICSR M.Sc.(CA)2007-’09 6

Middleware - Use

Middleware services provide a more functional set of API than OS and network services to allow an application to – Locate transparently across the network,

providing interaction with other application or service

Be independent from network services.

Page 7: Middleware Basics

3/2/2008 Varun Arora @ SICSR M.Sc.(CA)2007-’09 7

Middleware - Use

Be reliable and available. Scale-up in capacity without losing function.

Page 8: Middleware Basics

3/2/2008 Varun Arora @ SICSR M.Sc.(CA)2007-’09 8

Middleware – Different Forms

Transaction Processing (TP) monitors. Remote Procedure Calls (RPC) Message Oriented Middleware (MOM) Object Request Brokers (ORBs)

Page 9: Middleware Basics

3/2/2008 Varun Arora @ SICSR M.Sc.(CA)2007-’09 9

TP Monitors - Demonstration

Client Transaction Type Requests

Database

Processing Routines

Client

Client

Client

Client

Client

TransactionProcessing

Monitor

Page 10: Middleware Basics

3/2/2008 Varun Arora @ SICSR M.Sc.(CA)2007-’09 10

RPC - Demonstration

TRANSPORT

NETWORK

NETWORK

TRANSPORT

RPC Stub

RPC Stub

Application

ApplicationServer

Application specificprocedure invocations

and returns

Page 11: Middleware Basics

3/2/2008 Varun Arora @ SICSR M.Sc.(CA)2007-’09 11

ORB - Demonstration

Client Application Remote Service(Object)

ORB

Locate service Activate service

communicate

Establishconnection

Page 12: Middleware Basics

3/2/2008 Varun Arora @ SICSR M.Sc.(CA)2007-’09 12

Message Oriented Middleware

MOM (Message Oriented Middleware) is a client / server infrastructure which allows the application to be distributed over multiple heterogeneous platforms.

Reduces complexity of applications spanning operating systems and network protocols by insulating them from un-necessary details.

Page 13: Middleware Basics

3/2/2008 Varun Arora @ SICSR M.Sc.(CA)2007-’09 13

Message Oriented Middleware Data is exchanged by message passing

and/or message queuing supporting both synchronous and asynchronous interactions between distributed computing processes.

The MOM system ensures message delivery by using reliable queues and by providing the directory, security, and administrative services required to support messaging.

Page 14: Middleware Basics

3/2/2008 Varun Arora @ SICSR M.Sc.(CA)2007-’09 14

MOM - Demonstration

Queue

MOM Provider

APPLICATION

MOM

API

TRANSPORT

NETWORK

APPLICATION

MOM

API

TRANSPORT

NETWORK

Message Message

Application A(Client A)

Application B(Client B)

Page 15: Middleware Basics

3/2/2008 Varun Arora @ SICSR M.Sc.(CA)2007-’09 15

MOM - Advantages

Asynchronous Flexible Portability Interoperability Reduces Complexity

Page 16: Middleware Basics

3/2/2008 Varun Arora @ SICSR M.Sc.(CA)2007-’09 16

MOM - Products

IBM Websphere MQ Series Sonic MQ MS MQ Java Message Queue

Page 17: Middleware Basics

3/2/2008 Varun Arora @ SICSR M.Sc.(CA)2007-’09 17

MOM - Architectural SignificanceMainframe

Database

Transaction

J2EE Application

Middle Layer

Listener

Listener

Message

Message

Message

MessageMessage

Process C

Process B

Process A

APPLICATION

1

2 3

4

5 67

8

0

9

C

B

AQ1 Q2

Page 18: Middleware Basics

3/2/2008 Varun Arora @ SICSR M.Sc.(CA)2007-’09 18

Queries??

Thank You!!