TEC Presentation

watermelonroachdaleInternet and Web Development

Jul 30, 2012 (5 years and 3 months ago)

448 views

© 2012 IBM Corporation

An IBM Proof of Technology

WebSphere Enterprise Service Bus
Overview

Discovering the Value of WebSphere Enterprise Service V7.5

© 2012 IBM Corporation

IBM Software

2

Discovering the Value of WebSphere Enterprise Service V7.5


Agenda


WebSphere Enterprise Service Bus features and concepts



A survey of mediation primitives in WebSphere Enterprise Service Bus



ESB Federation & WebSphere Service Registry and Repository integration


2

© 2012 IBM Corporation

IBM Software

3

Discovering the Value of WebSphere Enterprise Service V7.5


WebSphere ESB Essentials: Family Values...

WebSphere


Application

Server

WebSphere


Application Server ND

WebSphere ESB

IBM BPM Advanced Edition
Process Server

App Server

Clustering

Mediation

Choreography

And Solution
Viewpoint

3

© 2012 IBM Corporation

IBM Software

4

Discovering the Value of WebSphere Enterprise Service V7.5

WebSphere ESB and WebSphere Application Server

WebSphere Application Server:

Transport layer foundation provides infrastructure

via JMS 1.1, HTTP, IIOP



Pre
-
built mediation functions and easy to use tools enable
rapid construction and implementation of a Enterprise
Service Bus


Leverage visual tooling to exploit supplied pre
-
built
mediation functions

WebSphere ESB:

Mediation layer builds on WebSphere Application Server

foundation to provide intelligent connectivity

4

© 2012 IBM Corporation

IBM Software

5

WebSphere ESB Essentials: What Do I get?

WebSphere

ESB

*Licence to use.
Adapters packaged
with IID

Web

Service
s:

Adapters*

Messagin
g
:

Protocol
Support
(connect from
any to any)

Mediation
Support
(transformation,
logging, routing,
etc)

Tivoli Access Manager

Supports the visual Mediation
Construction provided by

IBM Integration Designer

UDDI

Wide Range of Supplied
Mediation Function

Enterprise QOS

Security

Transactions

Scalability

etc...

Availability

Format Support

(convert from
any to any)

Fixed Width

XML

Atom

WTX

Delimited

SOAP

JSON

EJB

5

Discovering the Value of WebSphere Enterprise Service V7.5

© 2012 IBM Corporation

IBM Software

6

Connectivity Support



Defined as
Export

and
Import

nodes in application modules.


Supported Connectivity Bindings:

o
Native
SCA

(module to module)

o
HTTP

Access (REST, XML/HTTP)

o
Web Services

(SOAP/HTTP, SOAP/JMS)

o
Messaging (
JMS
,
MQ
, JMS MQ, generic JMS 3
rd

party adapters)

o
JEE Applications (Session
EJB
)

o
Java Connectivity Architecture (
JCA
) adapters


Supplied Adapters:

o
IBM WebSphere Adapter for
Email

o
IBM WebSphere Adapter for
FTP

o
IBM WebSphere Adapter for
Flat Files

o
IBM WebSphere Adapter for
JDBC

o
IBM WebSphere Adapter for
System i

o
IBM WebSphere Adapter for
ECM

o
IBM WebSphere Adapter for
Lotus Domino

o
IBM
CICS

ECI Resource Adapter

o
IBM
IMS

Connector for Java

o
IBM WebSphere Adapter for
Oracle
® E
-
Business Suite

o
IBM WebSphere Adapter for
PeopleSoft


o
IBM WebSphere Adapter for
SAP
® Software

o
IBM WebSphere Adapter for
Siebel
® Business Applications

o
IBM WebSphere Adapter for
JD Edwards

EnterpriseOne®


Built
-
in

7.5

Updated

6

Discovering the Value of WebSphere Enterprise Service V7.5

© 2012 IBM Corporation

IBM Software

7

IBM Integration Designer *


Provides an easy to use, visual programming interface for
WebSphere Enterprise Service Bus (and IBM Process Server
Advanced Edition)


Contains built
-
in WESB and IBM BPM runtimes for application
testing

Integration

Developer

* new name for WebSphere Integration Developer

7

Discovering the Value of WebSphere Enterprise Service V7.5

© 2012 IBM Corporation

IBM Software

8

Programming Model
-

Service Component Architecture


An

architecture where
components

implement business logic,
exports

describe the interface to the service consumers, and
imports

describes the
interface

to the service providers.











Module

Component1

Export

Component1

Import

Import







Service

Requester




Service

Provider1




Service

Provider2

Interface
:

How to call

this component, modeled
as WSDL/XSD.

Exports:


SCA

Web Services

JMS

MQ

HTTP

EJB (session)

Adapters

Imports:


SCA

Web Services

JMS

MQ

HTTP

EJB (session)

Adapters

Components:


Java

Mediation Flow

Process

Human Task

State Machine

Business Rule

Interface Map

Selector

Process Server only

8

Discovering the Value of WebSphere Enterprise Service V7.5

© 2012 IBM Corporation

IBM Software

9

Integration

Developer

Matching and Routing

Filtering is based on XPath expressions. In business terms we are taking data from the input request
and selecting a service based on that data.

9

Discovering the Value of WebSphere Enterprise Service V7.5

© 2012 IBM Corporation

IBM Software

10

Integration

Developer

Data Conversion

A crisp, clean drag and drop interface for data conversion. In addition to the basics there are
submaps, comprehensive array support, Java callouts. The XSLT primitive can access and
manipulate headers as well as message data

10

Discovering the Value of WebSphere Enterprise Service V7.5

© 2012 IBM Corporation

IBM Software

11

Integration

Developer

Deployment and Testing

Servers Tab

Complete IBM Process Server and
WebSphere ESB server installation
profiles (with a limited usage license)

Server control options,
including start the server
in debug mode

11

Discovering the Value of WebSphere Enterprise Service V7.5

© 2012 IBM Corporation

IBM Software

12

Discovering the Value of Smart SOA with WebSphere Enterprise Service Bus Registry Edition V7.5

Integration

Developer

Deployment and Testing

‘In flight’ data can be
viewed and edited here

The mediation flow shows current progress. The golden
sphere is where the flow has been halted. A purple tick
mark shows the path along which execution has
occurred to this stage

The debug perspective was opened because a break point was reached while
the flow was executing

Continued flow execution is
controlled here

12

© 2012 IBM Corporation

IBM Software

13

Agenda


WebSphere Enterprise Service Bus features and concepts



A survey of mediation primitives in WebSphere Enterprise Service Bus



ESB Federation & WebSphere Service Registry and Repository integration


13

Discovering the Value of WebSphere Enterprise Service V7.5

© 2012 IBM Corporation

IBM Software

14

Mediation module


The whole picture

Service

Consumer

Mediation Flow

Component

Mediation Module

SCA

Export

SCA

Import

Service

Provider

Request Flow

Response Flow

Mediation

Primitive

Mediation

Primitive

Mediation

Primitive

Mediation

Primitive

Mediation

Primitive

Mediation

Primitive

Mediation Module

Import

Export

Shared Library

Interfaces

Data Types

etc.

SMO

..context

..headers

..body

14

Discovering the Value of WebSphere Enterprise Service V7.5

© 2012 IBM Corporation

IBM Software


Mediation primitive



Symbol



Description


Callout

To call a service reference from the flow.

Service Invoke

To call an intermediary service from within the
mediation flow


Mediation primitives


Service Invocation

15

Discovering the Value of WebSphere Enterprise Service V7.5

© 2012 IBM Corporation

IBM Software

Discovering the Value of Smart SOA with WebSphere Enterprise Service Bus Registry Edition V7.5

Mediation primitives


Routing (1/2)


Mediation primitive



Symbol



Description


Message Filter

To filter messages selectively forwarding them on to output
terminals based on a simple condition expression

Type Filter

To filter messages selectively forwarding them onto output
terminals based on whether the message contains element(s) of a
specific type

Endpoint Lookup

To retrieve endpoint URLs from WebSphere Service Registry and
Repository

Fan Out

To create messages from repeated elements within the message
and can be paired with a Fan In primitive to aggregate data from
multiple sources

Fan In



Used in combination with a Fan Out primitive to define a decision
point for the aggregation of data from multiple sources

Policy Resolution

To retrieve policies from WebSphere Service Registry and
Repository and use that information to override promoted
mediation property values to dynamically configure the flow

16

© 2012 IBM Corporation

IBM Software

Discovering the Value of Smart SOA with WebSphere Enterprise Service Bus Registry Edition V7.5

Mediation primitives


Routing (2/2)


Mediation primitive



Symbol



Description


Flow Order

To specify the order in which branches of a flow are fired

Gateway Endpoint Lookup

To retrieve endpoint URLs from WebSphere Service Registry and
Repository when the module is acting as a proxy gateway or
service gateway

SLA Check

To enforce Service Level Agreements retrieved from WebSphere
Service Registry and Repository

SLA Endpoint Lookup

To look for available endpoints for an active Service Level
Agreement that has been agreed between a service consumer and
a service provider. Dynamic endpoints can be selected based on:



Whether the consumer of the endpoint has a valid SLA for the
endpoint


Whether the particular SLA is active


Whether the endpoint is online


Whether the endpoint has a certain Environment classification,
such as Production or Development


UDDI Endpoint Lookup

To retrieve endpoint URLs from UDDI

17

© 2012 IBM Corporation

IBM Software

18

Discovering the Value of Smart SOA with WebSphere Enterprise Service Bus Registry Edition V7.5

Mediation primitives


Transformation (1/2)



Mediation primitive



Symbol



Description


XSLT

To manipulate or transform messages using XSL transformation.

Business Object Map

To transform messages using a business object map


Message Element Setter

To change, add, or delete the content of a message

Set Message Type

To overlay weakly typed message elements with a more detailed
(strongly typed) structure

Database Lookup

To access information in a database and store it in the message

Data Handler



To transform a particular section of the message from a phyical
format to a logical structure or from a logical structure to a physical
format

Custom

For custom processing of a message

18

© 2012 IBM Corporation

IBM Software

19

Mediation primitives


Transformation (2/2)


Mediation primitive



Symbol



Description


SOAP Header Setter

To create, modify, copy or delete SOAP headers

HTTP Header Setter

To create, modify, copy or delete HTTP headers


JMS Header Setter

To create, modify, copy or delete JMS headers

MQ Header Setter

To create, modify, copy or delete MQ headers

19

Discovering the Value of WebSphere Enterprise Service V7.5

© 2012 IBM Corporation

IBM Software

20

Mediation primitives


Tracing


Mediation primitive



Symbol



Description


Message Logger

To log message information. Can be used to log to a database or
custom location

Event Emitter

To log an event to a CEI server

Trace

To write trace messages to the server logs or to log files.

20

Discovering the Value of WebSphere Enterprise Service V7.5

© 2012 IBM Corporation

IBM Software

21

Mediation primitives


Error Handling


Mediation primitive



Symbol



Description


Stop

To stop a path in the flow without generating an exception.

Fail

To stop a path in the flow and generate an exception

Message Validator

To validate all or part of the message

21

Discovering the Value of WebSphere Enterprise Service V7.5

© 2012 IBM Corporation

IBM Software

22

Mediation primitives


Subflows


Mediation primitive



Symbol



Description


Subflow

A preconfigured set of primitives which run within the context of a
parent flow that form a common pattern that can be reused
amongst mediation flows

22

Discovering the Value of WebSphere Enterprise Service V7.5

© 2012 IBM Corporation

IBM Software

23

Agenda


WebSphere Enterprise Service Bus features and concepts



A survey of mediation primitives in WebSphere Enterprise Service Bus



ESB Federation & WebSphere Service Registry and Repository integration


23

Discovering the Value of WebSphere Enterprise Service V7.5

© 2012 IBM Corporation

IBM Software

Multiple Service Buses


a Fact Of SOA Life ...

“Eighty percent of large
companies have ESBs or
similar SOA infrastructure
products from
three or more

vendors”

“…but only half of all large
companies apply a
systematic,
federated
approach to managing their
disparate SOA domains and
ESBs.”


--

Gartner, Roy Schulte, “Succeeding
With Multiple SOA Service Domains
and Disparate ESBs”.

© 2012 IBM Corporation

IBM Software

Top
-
Down Federation


Enterprise Topologies


Organizational, governance or geographical
domains


One size does not fit all


Designed for federation



BU1

Stores

HQ

Americas

AP

Europe

Corporate

BU2

BU3

© 2012 IBM Corporation

IBM Software

ESB Deployment Patterns


Global, Single Logical and
Independent ESBs


The Global ESB and its registry
support the entire enterprise.


The Global ESB pattern can be
extended across distributed
geographies. This is called the
Single Logical ESB.


The Independent ESB pattern
exists when multiple independent
ESBs and registries exist within an
organization without any central
management or coordination.


Global, Single Logical

or Independent ESB

Service Provider

Service Requester

© 2012 IBM Corporation

IBM Software

Directly Connected

Pattern

ESB Federation Patterns


Directly Connected


In the Directly Connected pattern,
enterprise service deployed across
multiple ESBs are federated
together through the
implementation of an
“enterprise” registry.


Multiple service deployment and
service consumption patterns
are possible

and careful thought
must be given to their selection.


Governance is distributed, with
cooperation across the enterprise.

© 2012 IBM Corporation

IBM Software

Domain A

Directly Connected ESB Federation

Service Deployment And Invocation

Registry
A

ESB A

Service Requester

Service
Provider
Metadata

1

2

3

4

Service Provider


A local request is made for a
local provider

Domain B

Registry
B

ESB B

Enterprise
Registry

© 2012 IBM Corporation

IBM Software

Domain A

Directly Connected ESB Federation

Service Deployment And Invocation

Registry
A

ESB A

Domain B

Registry
B

ESB B

Enterprise
Registry

Service Requester

Service
Provider
Metadata

6


The provider is elevated to be a
shared enterprise service


Provider metadata is moved to the
Enterprise Registry


Local registries are populated with
provider metadata which includes an
encapsulated lookup in the Enterprise
Registry

Service Provider

2

Service
Provider
Metadata

(lookup)

Service
Provider
Metadata

(lookup)

1

4

3

5

© 2012 IBM Corporation

IBM Software

Domain A

Directly Connected ESB Federation

Service Deployment And Invocation

Registry
A

ESB A

Domain B

Registry
B

ESB B

Enterprise
Registry

Service Requester

Service
Provider
Metadata


A remote request is made for the
enterprise service provider

Service Provider

2

Service
Provider
Metadata

(lookup)

Service
Provider
Metadata

(lookup)

1

3

4

6

7

5

© 2012 IBM Corporation

IBM Software

ESB Federation Patterns


Brokered


A broker ESB selectively exposes
service providers in multiple
domains


Service interactions are facilitated
through the broker, which
implements common security and
transformation services


Governance is managed locally in
each domain and enterprise
services are published centrally in
the broker registry.


Brokered

© 2012 IBM Corporation

IBM Software

ESB Federation Patterns


Hub and Spoke


Spoke ESBs are connected to the
Hub ESB with no direct connections
between branches.


Service requests are made to the
local ESB, which mediates and
routes requests to local services or
on to the central ESB when
required.


Combines an autonomous local
implementation with a centralized
governance model.


A variation of this pattern is the
“Imposed” pattern where everything
is created and managed at the hub
and pushed out to the spokes.



Hub and Spoke

© 2012 IBM Corporation

IBM Software

Spoke A

Hub and Spoke ESB Federation

Service Deployment And Invocation

Registry
A

ESB A

Service Requester

Service
Provider
Metadata

1

2

3

Service Provider


Local services requested locally

Spoke B

Registry
B

ESB B

Service Requester

Service
Provider
Metadata

1

2

3

Service Provider

Hub

Hub
Registry

Hub ESB

Service Requester

Service
Provider
Metadata

1

2

3

Service Provider

4

4

4

© 2012 IBM Corporation

IBM Software

Spoke A

Hub and Spoke ESB Federation

Service Deployment And Invocation

Registry
A

ESB A

Service Requester

Service
Provider
Metadata

1

2

3

Service Provider


Hub services can be requested
from a spoke


Hub
-
to
-
spoke and spoke
-
to
-
spoke invocations are possible
but are not typical

Spoke B

Registry
B

ESB B

Service Requester

Service
Provider
Metadata

1

2

3

Service Provider

Hub

Hub
Registry

Hub ESB

Service Requester

Service
Provider
Metadata

Service Provider

4

6

4

5

© 2012 IBM Corporation

IBM Software

35

Dynamic Endpoint Lookup


WSRR stores and manages service provider metadata


ESB queries WSRR at runtime to select the right service endpoint dynamically


Avoid hard coded endpoints in ESB

1. Client invokes

a service on ESB

2. Mediation provides
“best fit” provider

3. Mediation queries
registry to retrieve
service provider

4. Request is routed to
provider

35

Discovering the Value of WebSphere Enterprise Service V7.5

© 2012 IBM Corporation

IBM Software

36

Integration

Developer

WSRR & Dynamic Endpoint Lookup

The invoked endpoint is decided at
runtime based on the response from
WSRR

36

Discovering the Value of WebSphere Enterprise Service V7.5

© 2012 IBM Corporation

IBM Software

37

Service Gateway Pattern


Implement Service Gateway Pattern for WESB in IBM Integration
Designer


Easily integrate with WSRR in WESB Registry Edition

37

Discovering the Value of WebSphere Enterprise Service V7.5

© 2012 IBM Corporation

IBM Software

38

Service Gateway Overview


A Service Gateway provides a single network addressable endpoint for
accessing and providing a control point for a multitude of service
providers


This differs from the typical service mediation/proxy pattern were each
service provider is fronted by a different network addressable endpoint

Service

Consumer A

Service

Provider A

Service

Consumer B

Service

Provider B

Service

Consumer C

Service

Provider C

Service Gateway

Service

Consumer A

Service

Consumer B

Service

Consumer C

Service

Provider A

Service

Provider B

Service

Provider C


Typical Service

Mediation

Service Gateway

Mediation

Mediation

Mediation

38

Discovering the Value of WebSphere Enterprise Service V7.5

© 2012 IBM Corporation

IBM Software

39

Discovering the Value of Smart SOA with WebSphere Enterprise Service Bus Registry Edition V7.5

We appreciate your feedback.

Please fill out the survey form in order to improve this educational event.

SIMPLIFIED CHINESE

HINDI

JAPANESE

ARABIC

RUSSIAN

TRADITIONAL CHINESE

TAMIL

THAI

FRENCH

GERMAN

ITALIAN

SPANISH

BRAZILIAN PORTUGUESE

39