Top Banner
IBM Software Group © 2009 IBM Corporation Smart SOA in Action SOA Connectivity with Enterprise Service Bus Simon Chan SOA Architect [email protected]
40

Smart SOA in Action - IBM · Smart SOA in Action SOA Connectivity with ... Misc Accounting/Finance Apps - PC/NT AIMS ... and creation of solution assets

Apr 21, 2018

Download

Documents

NguyễnKhánh
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Smart SOA in Action - IBM · Smart SOA in Action SOA Connectivity with ... Misc Accounting/Finance Apps - PC/NT AIMS ... and creation of solution assets

IBM Software Group

© 2009 IBM Corporation

Smart SOA in ActionSOA Connectivity withEnterprise Service Bus

Simon ChanSOA [email protected]

Page 2: Smart SOA in Action - IBM · Smart SOA in Action SOA Connectivity with ... Misc Accounting/Finance Apps - PC/NT AIMS ... and creation of solution assets

IBM Software Group

© 2009 IBM Corporation2

A programming model complete with standards, tools, methods and technologies such as Web services

A model of the business and related key performance indicators

Roles

An architectural style which requires a service provider, requestor and a service description. It addresses characteristics such as loose coupling, reuse and simple and composite implementations.

Implementation

Architecture

Business

Service Oriented Architecture Different Things to Different People

OperationsA set of agreements and contracts among service requestors and service providers that specify the quality of service.

IBM IT Service Management

IT Process ManagementIT ProcessManagement Products

IT Service Management Platform

Best Practices

IT OperationalManagement Products

IBM IT Service Management

IT Process ManagementIT ProcessManagement Products

IT Service Management Platform

Best Practices

IT OperationalManagement Products

Page 3: Smart SOA in Action - IBM · Smart SOA in Action SOA Connectivity with ... Misc Accounting/Finance Apps - PC/NT AIMS ... and creation of solution assets

IBM Software Group

© 2009 IBM Corporation3

The promised benefits of SOA

Business process vitality

New value through reuse of assets

Improved connectivity

Closer alignment of IT to business

Business Flexibility

Page 4: Smart SOA in Action - IBM · Smart SOA in Action SOA Connectivity with ... Misc Accounting/Finance Apps - PC/NT AIMS ... and creation of solution assets

IBM Software Group

© 2009 IBM Corporation4

Application topology for a company

DFK

Data Warehouse

GeneralLedger

AP

SalesCorrections

POReceiving

Return toVendor

WarehouseManagement

Credit App

EmployeeChange Notice

OTHER APPS - PC

ACCTS REC APPS - PCINVENTORY CONTROL APPS - PC INVENTORY CONTROL APPS - PC

Journal Entry Tool Kit

Scorecard

ResourceScheduling

P09 - P17Cyb.

Mill.

Millennuim 3.0

Banks - ACH and Pos toPay

Cobra

StockStatus

Polling

On-line NewHire Entry

CTS

Plan Administrators(401K, PCS, Life)

Post LoadBilling

HomeDeliveries

-Transfers

Planning

PurchaseOrder

SolutionSoftware

Inventory Info

Interface

Sales Posting

Price ManagementSystem

Cycle PhysicalInventory

SKUInformation

Customer RepairTracking I35 Early Warning

System

MerchandiseAnalysis

AutoReplenishment

CTO

InterceptCounts

EmployeePurchase

Tex A

ACH

Stock Options

Customer PerceivedIn-Stock

Tx

SS

CapitalProjects

FixedAssets

ReconFile

Repair

EDICoordinator

Mesa Data NEW Soundscan

Resumix

Op.

Store BudgetReporting

Tally Sheet

Cash Receipts/Credit

HouseCharges

Ad Expense

-PromoAnalysis

PriceMarketingSupport

BMP - Busperformance Mngt

StoreScorecard

PriceTesting

Media

Bonus/HR

Hand ScanApps

Shows

POS

SalesTax

A04 - CustRefund Chks

Equifax

Credit

CellularRollover

SatelliteSystem

Scanning

VAN

SKU Rep

Host to AS400Communication

Layaways

Bus Systems

V04-SignSystem

Count CorrectionsN.

P01-EmployeeMasterfile

CustomerOrder

ABCCo

Universal AccountReconcilliation

DepositoryBanks

CellPhones

- ISPTracking

AAS

PO

Cash Over/Short

Coop SKU SelectionTool

SKUPerformance

SupplierCompliance

1

DRKABBX

Misc Accounting/Finance Apps - PC/NT

AIMSMngr Approval

Batch ForcastingAd Measurement

AIMSReportingAd

Launcher

MktReactions

SpecSource

website

RebateTransfer

SignSystem

WriterWorkspace

PowerSuiteStore

Monitor

Calendar

Stores & Mrkts

Due Dates

Smart Plus

InsertionsOrders

BudgetAnalysis Tool

Print CostingInvoice App

Reports

BroadcastFilter

Smart PlusLauncher

GeneralMaintenance

Printer PO

PrinterMaintenance

VendorMaintenance

Vendor Setup

Connect 3

Connect 3Reports

Connect 3PDF Transfe

Spec SourceSKU Tracking

S20-SalesPolling

Prodigy

PSP

In-HomeRepair

WarrantyBillingSystem

Process Servers(Imaging)

Problems Arising from Connectivity

Ever increasing application maintenance costs.“In 2004, 73% of I.T. budgets were spent on maintenance and 27% on new investments.

In 2005, survey respondents expect to spend 76% on maintenance, leaving just 24% for new investments.”

Forrester Research*

Page 5: Smart SOA in Action - IBM · Smart SOA in Action SOA Connectivity with ... Misc Accounting/Finance Apps - PC/NT AIMS ... and creation of solution assets

IBM Software Group

© 2009 IBM Corporation5

Core Elements of a Service-based Design• Service Components

– A technology- and language-independent representation of a service which can be composed with other services

• Service Data

– A technology- and language-independent representation of a data entity that can be passed between services

• Service Bus

– A technology- and protocol-independent representation of the interconnection

SAPAdapter

OracleAdapter

DBAccess

DBAccess

Portlets Query

CommunityManager

Page 6: Smart SOA in Action - IBM · Smart SOA in Action SOA Connectivity with ... Misc Accounting/Finance Apps - PC/NT AIMS ... and creation of solution assets

IBM Software Group

© 2009 IBM Corporation6

SOA Is An Evolutionary Application Architecture.

Page 7: Smart SOA in Action - IBM · Smart SOA in Action SOA Connectivity with ... Misc Accounting/Finance Apps - PC/NT AIMS ... and creation of solution assets

IBM Software Group

© 2009 IBM Corporation7

Flexibility

Point-to-Point connection between applicationsSimple, basic connectivity

Messaging Backbone

EAI connects applications via a centralized hub Easier to manage larger number of connections

Enterprise Application Integration (EAI)

Integration and choreography of services through an Enterprise Service Bus Flexible connections with well defined, standards-based interfaces

Service Orientated Integration

SOA – The next stage of integration

Page 8: Smart SOA in Action - IBM · Smart SOA in Action SOA Connectivity with ... Misc Accounting/Finance Apps - PC/NT AIMS ... and creation of solution assets

IBM Software Group

© 2009 IBM Corporation8

Choreograph components into business processes

Outsourced

Supplier

Shared Services

Division(s)

Customer

Page 9: Smart SOA in Action - IBM · Smart SOA in Action SOA Connectivity with ... Misc Accounting/Finance Apps - PC/NT AIMS ... and creation of solution assets

IBM Software Group

© 2009 IBM Corporation9

Outsourced

Supplier

Shared Services

Division(s)

Customer

Add a Flexible Integration Layer - ESB

Enterprise Service Bus

Service Registry &Repository

Adapters Web ServicesGateway

Mediations

SOA ManagementData Power

Tivoli®

Page 10: Smart SOA in Action - IBM · Smart SOA in Action SOA Connectivity with ... Misc Accounting/Finance Apps - PC/NT AIMS ... and creation of solution assets

IBM Software Group

© 2009 IBM Corporation10

SOA Reference Architecture – Enable SOAModel of the Logical Architecture

Business Innovation & Optimization ServicesProvide for better decision-making with real-time business information

Dev

elop

men

tSe

rvic

es

Integrated environment

for design and creation of solution

assets

Interaction Services

Enables collaboration between people,

processes & information

Process Services

Orchestrate and automate business

processes

Information Services

Manages diverse data and content in a

unified manner

ESB Enable interEnable inter--connectivity between servicesconnectivity between services

Partner Services

Connect with trading partners

Business App ServicesBuild on a robust,

scaleable, and secure services environment A

pps

&

Info

Ass

etsAccess Services

Facilitate interactions with existing information and application assets

IT S

ervi

ceM

anag

emen

t

Manage and secure services,

applications &

resources

Infrastructure ServicesOptimizes throughput,

availability and performance

Page 11: Smart SOA in Action - IBM · Smart SOA in Action SOA Connectivity with ... Misc Accounting/Finance Apps - PC/NT AIMS ... and creation of solution assets

IBM Software Group

© 2009 IBM Corporation11

What Problems Do We Need To Solve?

How to move information around…

A messaging component

A B C X Y Z

……

Page 12: Smart SOA in Action - IBM · Smart SOA in Action SOA Connectivity with ... Misc Accounting/Finance Apps - PC/NT AIMS ... and creation of solution assets

IBM Software Group

© 2009 IBM Corporation12

Why is this a Challenge?“Computers are really dumb. You have to tell them everything.”

• How do you…?– Move data across different systems, platforms, and

devices when the HW, SW configurations and programming models are different?

– Overcome network failures?– Deliver information when the target application is not

online or is busy?– Ensure transmission integrity and recovery?– Handle lost or/duplicate data?– Ensure a secure connection?– Ensure multi-step transactions either happen completely

or not at all?– Apply qualities of service based on different

requirements? e.g., assured delivery, fast delivery?– Manage a session (request/response)?– Efficiently distribute events? – Scale to handle volumes?– Deal with data in unlike formats?– Determine which data to send where?– Audit who send what, where and when?

2. Build your own middleware

You either:

1. Program it all into your applications

3. Buy middleware to do it for you

“Computers are really dumb. They do exactly what you tell them to.”

Page 13: Smart SOA in Action - IBM · Smart SOA in Action SOA Connectivity with ... Misc Accounting/Finance Apps - PC/NT AIMS ... and creation of solution assets

IBM Software Group

© 2009 IBM Corporation13

What is an Enterprise Service Bus (ESB)?A flexible connectivity infrastructure for integrating applications as services………which reduces the number, size, and complexity of interfaces.An ESB:

Color = Data type

Shape = Protocol

CONVERTS between different transport protocols used by the participants

VIRTUALIZES the location and identity of participants

TRANSFORMS message formats between participants

APPLIES appropriate qualities of service for the given interaction

DISTRIBUTES business event information to/from disparate sources.

Page 14: Smart SOA in Action - IBM · Smart SOA in Action SOA Connectivity with ... Misc Accounting/Finance Apps - PC/NT AIMS ... and creation of solution assets

IBM Software Group

© 2009 IBM Corporation14

The ESB allows you to focus on your core business

TravelReservation

Process

FlightAvailability

Service

Enterprise Service Bus

NEW CheckTravelerService

Book HotelService

HotelAvailability

ServiceBook CarService

NEW FlightAvailability

Service

OLD FlightAvailability

Service

Book FlightService

Check CreditService

Change services with minimal impact to existing services

Add new services faster

The integration logic stays “in the bus”

Page 15: Smart SOA in Action - IBM · Smart SOA in Action SOA Connectivity with ... Misc Accounting/Finance Apps - PC/NT AIMS ... and creation of solution assets

IBM Software Group

© 2009 IBM Corporation15

Basic ESB Pattern

Human Tasks

Existing Application

External Service

New Business Logic

Business Rules

Process Coordination

Interact

QoSMediate

Page 16: Smart SOA in Action - IBM · Smart SOA in Action SOA Connectivity with ... Misc Accounting/Finance Apps - PC/NT AIMS ... and creation of solution assets

IBM Software Group

© 2009 IBM Corporation16

Common Data Model: Business Objects

• Business Objects represent structured application data

• Consistent logical representation, independent of data source or wire format

• Based upon SDO standard

• Multiple data bindings can be supported

Business object definition

(SDO/XML schema)

Page 17: Smart SOA in Action - IBM · Smart SOA in Action SOA Connectivity with ... Misc Accounting/Finance Apps - PC/NT AIMS ... and creation of solution assets

IBM Software Group

© 2009 IBM Corporation17

Mediation Module

• Mediation service applications are assembled and deployed as one or more mediation modules. A mediation module can have the following parts: – Exports that expose the mediation module to service requesters

– A mediation flow component

– Imports that identify service providers and their interfaces

– Java components that implement custom mediation primitives invoked by the mediation flow component

Page 18: Smart SOA in Action - IBM · Smart SOA in Action SOA Connectivity with ... Misc Accounting/Finance Apps - PC/NT AIMS ... and creation of solution assets

IBM Software Group

© 2009 IBM Corporation18

Mediation Flow Nodes …

Page 19: Smart SOA in Action - IBM · Smart SOA in Action SOA Connectivity with ... Misc Accounting/Finance Apps - PC/NT AIMS ... and creation of solution assets

IBM Software Group

© 2009 IBM Corporation19

Transforming Content …

• BO Mapper …– Visual transformation

mapping

• Custom Mediation …– Invokes Java code to

perform transformation logic

• XSL Transform …– Invokes an XSLT Style Sheet to

perform transformation logic

Page 20: Smart SOA in Action - IBM · Smart SOA in Action SOA Connectivity with ... Misc Accounting/Finance Apps - PC/NT AIMS ... and creation of solution assets

IBM Software Group

© 2009 IBM Corporation20

Service Invoke …

Page 21: Smart SOA in Action - IBM · Smart SOA in Action SOA Connectivity with ... Misc Accounting/Finance Apps - PC/NT AIMS ... and creation of solution assets

IBM Software Group

© 2009 IBM Corporation21

Endpoint Lookup …

Page 22: Smart SOA in Action - IBM · Smart SOA in Action SOA Connectivity with ... Misc Accounting/Finance Apps - PC/NT AIMS ... and creation of solution assets

IBM Software Group

© 2009 IBM Corporation22

Event Emitter …

Page 23: Smart SOA in Action - IBM · Smart SOA in Action SOA Connectivity with ... Misc Accounting/Finance Apps - PC/NT AIMS ... and creation of solution assets

IBM Software Group

© 2009 IBM Corporation23

Fan Out/Fan In …

Page 24: Smart SOA in Action - IBM · Smart SOA in Action SOA Connectivity with ... Misc Accounting/Finance Apps - PC/NT AIMS ... and creation of solution assets

IBM Software Group

© 2009 IBM Corporation24

Other nodes …

Page 25: Smart SOA in Action - IBM · Smart SOA in Action SOA Connectivity with ... Misc Accounting/Finance Apps - PC/NT AIMS ... and creation of solution assets

IBM Software Group

© 2009 IBM Corporation25

Typical Integration Developer Task Flow

Identify service endpointsto be integrated

Create basic connectivitybetween endpoints

Implement mediation functionto allow communication

Test and debug mediationfunction

Deploy results to theruntime

Page 26: Smart SOA in Action - IBM · Smart SOA in Action SOA Connectivity with ... Misc Accounting/Finance Apps - PC/NT AIMS ... and creation of solution assets

IBM Software Group

© 2009 IBM Corporation26

Identify Service Endpoints to be integrated

• Concept– The mediation module defines a mediation component and the

endpoints it mediates in the form of imports and exports• Task

– Define mediation module and component– Define imports for service providers– Define exports for service requestersService requester Service providers

Mediation component

Page 27: Smart SOA in Action - IBM · Smart SOA in Action SOA Connectivity with ... Misc Accounting/Finance Apps - PC/NT AIMS ... and creation of solution assets

IBM Software Group

© 2009 IBM Corporation27

Typical Integration Developer Task Flow

Identify service endpointsto be integrated

Create basic connectivitybetween endpoints

Implement mediation functionto allow communication

Test and debug mediationfunction

Deploy results to theruntime

Page 28: Smart SOA in Action - IBM · Smart SOA in Action SOA Connectivity with ... Misc Accounting/Finance Apps - PC/NT AIMS ... and creation of solution assets

IBM Software Group

© 2009 IBM Corporation28

Available Service Endpoints: binding types for servicesWebSphere Adapters (e.g. CICS, IMS, SAP...)

Web services (SOAP/HTTP, SOAP/JMS)

JMS (including WebSphere MQ and WebSphere Business Integration (WBI) Adapters)

EJB

HTTP

Native (SCA or MQ)

Java invocation

Page 29: Smart SOA in Action - IBM · Smart SOA in Action SOA Connectivity with ... Misc Accounting/Finance Apps - PC/NT AIMS ... and creation of solution assets

IBM Software Group

© 2009 IBM Corporation29

Typical Integration Developer Task Flow

Identify service endpointsto be integrated

Assert basic connectivitybetween endpoints

Implement mediation functionto allow communication

Test and debug mediationfunction

Deploy results to theruntime

Page 30: Smart SOA in Action - IBM · Smart SOA in Action SOA Connectivity with ... Misc Accounting/Finance Apps - PC/NT AIMS ... and creation of solution assets

IBM Software Group

© 2009 IBM Corporation30

• Mediation Flows allow you to process (mediate) the messages that are passed between services

• A Mediation Flow Component contains Mediation Flows:– a Request Flow, to mediate the message received as input– a Response Flow*, to mediate the returning messages (combined if more than one)

• Typical mediations are:– transform the message format– conditionally route the message to one or more targets– add data to the message

target operation

Mediation Flows

Request Flow

source operation

input node

source operation

Response Flow

target operation

input response

node

message message

message message

mediation primitive

mediation primitive

callout node

callout response

node

* Only if the operation is a Request/Response operation

Page 31: Smart SOA in Action - IBM · Smart SOA in Action SOA Connectivity with ... Misc Accounting/Finance Apps - PC/NT AIMS ... and creation of solution assets

IBM Software Group

© 2009 IBM Corporation31

Mediation Flows

Input

Callout

Requ

est :

getQ

uote

Resp

onse

: getQ

uote

Oper

ation

Con

necti

ons

Callout Response

Input Response

defaultkeyNotFound

fail

Page 32: Smart SOA in Action - IBM · Smart SOA in Action SOA Connectivity with ... Misc Accounting/Finance Apps - PC/NT AIMS ... and creation of solution assets

IBM Software Group

© 2009 IBM Corporation32

Typical Integration Developer Task Flow

Identify service endpointsto be integrated

Assert basic connectivitybetween endpoints

Implement mediation functionto allow communication

Test and debug mediationfunction

Deploy results to theruntime

Page 33: Smart SOA in Action - IBM · Smart SOA in Action SOA Connectivity with ... Misc Accounting/Finance Apps - PC/NT AIMS ... and creation of solution assets

IBM Software Group

© 2009 IBM Corporation33

IntegrationDeveloper

Deploy to WebSphere Process Server or WebSphere Enterprise Service Bus Test Server

Debug mediation flows using an in-place visual debugger

Breakpoints can be added, stepped into, through, or over areas of interest while inspecting the values of the messages

Debugger is integrated with Java process, Java and XSLT debuggers in WebSphere Integration Developer.

Use the visual debugging tools to validate a message flow

Validates the flow using the Integrated Test Environment

Page 34: Smart SOA in Action - IBM · Smart SOA in Action SOA Connectivity with ... Misc Accounting/Finance Apps - PC/NT AIMS ... and creation of solution assets

IBM Software Group

© 2009 IBM Corporation34

Integrated Test Client – tests any SCA component

Page 35: Smart SOA in Action - IBM · Smart SOA in Action SOA Connectivity with ... Misc Accounting/Finance Apps - PC/NT AIMS ... and creation of solution assets

IBM Software Group

© 2009 IBM Corporation35

Typical Integration Developer Task Flow

Identify service endpointsto be integrated

Assert basic connectivitybetween endpoints

Implement mediation functionto allow communication

Test and debug mediationfunction

Deploy results to theruntime

Page 36: Smart SOA in Action - IBM · Smart SOA in Action SOA Connectivity with ... Misc Accounting/Finance Apps - PC/NT AIMS ... and creation of solution assets

IBM Software Group

© 2009 IBM Corporation36

Reference Materials

• IBM Redbooks™ @ http://www.redbooks.ibm.com/– SG247212 – Getting Started with WESB v6.0

– SG247413 – Production Topologies for WebSphere Process Server and WESB V6

– SG247369 – Patterns: SOA Design Using WMB and WESB

– SG247406 – Connecting Enterprise Applications to WESB

• WebSphere ESB @ ibm.com– http://www-

306.ibm.com/software/info1/websphere/index.jsp?tab=integration/esb

Page 37: Smart SOA in Action - IBM · Smart SOA in Action SOA Connectivity with ... Misc Accounting/Finance Apps - PC/NT AIMS ... and creation of solution assets

IBM Software Group

© 2009 IBM Corporation37

Page 38: Smart SOA in Action - IBM · Smart SOA in Action SOA Connectivity with ... Misc Accounting/Finance Apps - PC/NT AIMS ... and creation of solution assets

IBM Software Group

© 2009 IBM Corporation38

Page 39: Smart SOA in Action - IBM · Smart SOA in Action SOA Connectivity with ... Misc Accounting/Finance Apps - PC/NT AIMS ... and creation of solution assets

IBM Software Group

© 2009 IBM Corporation39

Page 40: Smart SOA in Action - IBM · Smart SOA in Action SOA Connectivity with ... Misc Accounting/Finance Apps - PC/NT AIMS ... and creation of solution assets

IBM Software Group

© 2009 IBM Corporation40