63
WebSphere Message Broker 101: The Swiss army knife for application integration David Coles – WebSphere Message Broker Level 3 Technical Lead, IBM Hursley – [email protected] Tuesday 9 th August 2011 V7.0.0.2

WebSphere Message Broker 101: The Swiss army knife for ... · WebSphere Message Broker 101: The Swiss army knife for application integration David Coles – WebSphere Message Broker

  • Upload
    others

  • View
    37

  • Download
    1

Embed Size (px)

Citation preview

Page 1: WebSphere Message Broker 101: The Swiss army knife for ... · WebSphere Message Broker 101: The Swiss army knife for application integration David Coles – WebSphere Message Broker

Web

Sp

here

Messag

e B

roker

101:

Th

e S

wis

s a

rmy k

nif

e f

or

ap

plicati

on

in

teg

rati

on

David

Cole

s –

WebS

phere

Message B

roker

Level 3 T

echnic

al Lead,

IBM

Hurs

ley –

dcole

s@

uk.ibm

.com

Tuesday 9

thA

ugust 2011

V7

.0.0

.2

Page 2: WebSphere Message Broker 101: The Swiss army knife for ... · WebSphere Message Broker 101: The Swiss army knife for application integration David Coles – WebSphere Message Broker

•W

elc

om

e to this

Technic

al In

trodu

ction to W

ebS

phere

Message B

roker.

•A

ll slid

es in this

pre

senta

tion h

ave a

t le

ast one c

orr

espondin

g n

ote

s s

lide lik

e this

one,

whic

h c

onta

ins furt

he

r in

form

ation o

n the t

opic

bein

g d

iscussed,and/o

r lin

ks to w

eb

pages.

•O

nly

this

note

s s

lide w

ill b

e s

how

n d

uring the

pre

se

nta

tion. T

o v

iew

all

oth

er

no

tes

slid

es, ple

ase d

ow

nlo

ad a

nd v

iew

a c

op

y o

f th

is p

resenta

tion.

•T

he W

ebS

phere

Message B

roker

hom

epage c

an b

e found a

t

http:/

/ww

w.ibm

.com

/soft

wa

re/inte

gra

tion/w

bim

essagebro

ker/

Page 3: WebSphere Message Broker 101: The Swiss army knife for ... · WebSphere Message Broker 101: The Swiss army knife for application integration David Coles – WebSphere Message Broker

Ag

en

da

•W

hat is

Message B

roker?

•P

rogra

mm

ing C

oncepts

•M

essage F

low

s

•N

odes

•M

essage M

od

el

•P

roduct O

verv

iew

•C

om

po

nents

•U

ser

Role

s a

nd E

nvironm

ents

•C

onn

ectivity S

cenari

os

•D

em

onstr

ation

Page 4: WebSphere Message Broker 101: The Swiss army knife for ... · WebSphere Message Broker 101: The Swiss army knife for application integration David Coles – WebSphere Message Broker

•T

his

pre

senta

tion is d

ivid

ed into

severa

l sections. W

e’ll

begin

by d

escribin

g w

hat

Message B

roker

is a

nd w

hy it is

im

port

ant.

At

this

tim

e w

e’ll

als

o g

o th

rough t

he s

tep

s

required t

o inte

gra

te a

pplic

ations togeth

er.

•M

essage B

roker

exposes th

ree im

port

an

t concepts

that

allo

w y

ou

to

inte

gra

te

applic

ations togeth

er.

We

see the

obje

cts

that W

eb

Sphere

Message

Bro

ker

supplie

s to

help

inte

gra

tors

achie

ve a

rapid

solu

tion. W

e'll

intr

oduce m

essage f

low

s a

nd n

odes

whic

h a

llow

the

connectivity a

nd f

unctionalit

y r

equirem

en

ts o

f applic

ations to b

e

modelle

d a

nd b

uilt

. W

e’ll

then e

xp

lain

the logic

al m

essage m

odel, a

concept w

hic

h

allo

ws u

s to m

anip

ula

te m

essages w

ithout

havin

g t

o u

nders

tand

the

ph

ysic

al deta

ils o

f

the m

essage f

orm

at.

•W

e’ll

then c

over

a v

ery

brief overv

iew

of

the c

om

ponents

that

make u

p W

ebS

phere

Message B

roker,

and the

typic

al user

role

s a

nd d

eplo

ym

en

t environ

ments

associa

ted

with it.

We’ll

als

o look a

t severa

l ty

pic

al scenarios that M

essage B

roker

isused fo

r.

•F

inally

, if w

e h

ave tim

e a

de

monstr

ation w

ill h

elp

bring e

very

thin

g to

geth

er.

Page 5: WebSphere Message Broker 101: The Swiss army knife for ... · WebSphere Message Broker 101: The Swiss army knife for application integration David Coles – WebSphere Message Broker

Wh

at

is W

eb

Sp

he

re M

es

sa

ge

Bro

ke

r?

•M

essage B

roker

enable

s “

univ

ers

al connectivity”

by inte

gra

ting

pro

tocols

, m

essage form

ats

and m

edia

tion p

attern

s

•E

mphasis

on a

pplic

ation r

e-u

se

•F

its n

atu

rally

with W

ebS

phere

MQ

•R

obust,

scala

ble

arc

hitectu

re

•O

ptim

ized f

or

hig

h t

hro

ughp

ut

•F

lexib

le b

roker

topolo

gie

s

•T

hre

e p

rogra

mm

ing c

onstr

ucts

are

used:

•M

essage F

low

s

•N

odes

•M

essage M

od

els

Page 6: WebSphere Message Broker 101: The Swiss army knife for ... · WebSphere Message Broker 101: The Swiss army knife for application integration David Coles – WebSphere Message Broker

•W

ebS

phere

Message B

roker

is IB

M’s

str

ate

gic

pro

duct fo

r “U

niv

ers

al C

onnectivity”.

Its

aim

is to

sim

plif

y a

pplic

ation c

onnectivity t

o p

rovid

e a

fle

xib

le a

nd d

ynam

ic infr

astr

uctu

re, th

at ro

ute

s a

nd

transfo

rms m

essages F

RO

M a

nyw

here

, T

O a

nyw

here

.

•IB

M h

as t

wo o

ther

str

ate

gic

ES

Bs

that solv

e d

iffe

rent connectivity p

roble

ms: W

ebS

phere

ES

B

pro

vid

es a

n inte

gra

ted S

OA

pla

tform

built

on W

ebS

phere

Applic

ation S

erv

er,

and W

ebS

phere

D

ata

Pow

er

XI5

0 is a

purp

ose-b

uilt

hard

ware

ES

B for

sim

plif

ied d

eplo

ym

ent and h

ard

ened s

ecurity

. M

ore

on this

late

r.

•T

here

are

thre

e p

art

s to a

pplic

ation inte

gra

tion: pro

tocols

, m

essage form

ats

and m

edia

tion p

attern

s.

•M

essage B

roker

exposes thre

e p

rogra

mm

ing c

oncepts

in o

rder

to inte

gra

te a

pplic

ations: m

essage

flow

s, nodes a

nd m

essage m

odels

.

•R

efe

rences:

•T

he M

essage B

roker

hom

e p

age c

an b

e found a

t http://w

ww

.ibm

.com

/soft

ware

/inte

gra

tion/w

bim

essagebro

ker/

•T

he d

ocum

enta

tion for

Message B

roker

can b

e found a

t http://p

ublib

.bould

er.

ibm

.com

/info

cente

r/w

mbhelp

/v7r0

m0/index.jsp

Page 7: WebSphere Message Broker 101: The Swiss army knife for ... · WebSphere Message Broker 101: The Swiss army knife for application integration David Coles – WebSphere Message Broker

Ap

pli

ca

tio

n C

on

ne

cti

vit

y

•P

roto

cols

•e.g

. M

Q, T

CP

/IP

, H

TT

P, F

ile s

yste

m,

FT

P,

SM

TP

, P

OP

3 e

tc.

•M

essage F

orm

ats

•e.g

. B

inary

(C

/CO

BO

L),

XM

L,

Industr

y (

SW

IFT

, E

DI, H

L7),

User-

defined

•M

edia

tion P

attern

s•

e.g

. R

oute

, T

ransfo

rm,

Enrich,

Filt

er,

Monitor,

Dis

trib

ute

, D

ecom

pose,

Corr

ela

te,

Fire a

nd F

org

et,

Re

quest/

Rep

ly,

Publis

h/S

ubscri

be,

Aggre

gation,

Fan-in,

Com

ple

x E

vent

Pro

cessin

g

Page 8: WebSphere Message Broker 101: The Swiss army knife for ... · WebSphere Message Broker 101: The Swiss army knife for application integration David Coles – WebSphere Message Broker

•T

hre

e s

trands a

re involv

ed in c

onnecting a

pplic

ations togeth

er.

•A

pplic

ations n

eed to t

alk

with e

ach o

the

r over

a c

om

munic

ations p

roto

col. T

ypic

al

pro

tocols

in u

se toda

y inclu

de T

CP

/IP

, and h

igher

level pro

tocols

such a

s F

TP

, S

MT

P

and H

TT

P.

•O

ve

r th

e c

om

munic

ations p

roto

col applic

ations e

xchange d

ata

, ty

pic

ally

in d

iscre

te

str

uctu

res k

now

n a

s m

essages. T

he fo

rma

t o

f th

ese m

essages c

an b

e d

efined f

rom

C

str

uctu

res o

r C

OB

OL c

op

ybooks (

for

exa

mple

), o

r sim

ply

use a

sta

ndard

form

at

such a

s

XM

L.

•In

ord

er

to c

onnect applic

ations togeth

er

so tha

t th

eir p

roto

cols

and m

essage form

ats

inte

ropera

te,

me

dia

tion p

attern

s n

eed to b

e a

pplie

d to o

ne

or

both

syste

ms y

ou’re t

ryin

g

to c

onnect.

These m

edia

tion p

atte

rns c

an b

e r

ela

tively

str

aig

htfo

rwa

rd, e.g

. ro

uting

messages fro

m o

ne p

lace to a

noth

er,

or

the

tra

nsfo

rma

tion o

f one

message form

at

into

anoth

er…

to r

ela

tively

com

ple

x p

atte

rns s

uch a

s a

ggre

gating m

ultip

le o

utp

uts

fro

m a

n

applic

ation into

a s

ingle

message for

a t

arg

et syste

m.

Page 9: WebSphere Message Broker 101: The Swiss army knife for ... · WebSphere Message Broker 101: The Swiss army knife for application integration David Coles – WebSphere Message Broker

[Cu

sto

me

r, O

rde

r, Q

ua

ntity

, P

rice

, D

ate

]

Mr. Smith,

Graphics Card, 32,

100, 24/06/2010M

QM

QM

QM

Q

<order>

<name>

<first>John</first>

<last>Smith</last>

</name>

<item>Graphics Card</item>

<quantity>32</quantity>

<price>200</price>

<date>06/24/2010</date>

</order>

[Cu

sto

me

r, O

rde

r, Q

ua

ntity

, P

rice

, D

ate

]

WS

MQ

MQ

Me

dia

tio

n P

att

ern

s –

Ro

uti

ng

an

d

Tra

ns

form

ati

on

Page 10: WebSphere Message Broker 101: The Swiss army knife for ... · WebSphere Message Broker 101: The Swiss army knife for application integration David Coles – WebSphere Message Broker

•A

n A

pplic

ation Inte

gra

tion S

cenario.

•A

pplic

ation A

sends s

om

e d

ata

to a

pplic

ation B

. A

t desig

n tim

e, th

e tw

o a

pplic

ations a

gre

ed o

n the

form

at of th

e d

ata

as the o

rdere

d s

et {C

usto

mer,

Ord

er,

Quantity

, P

rice, D

ate

}. F

urt

her,

the d

ate

is in

UK

form

at, the p

rice in U

K p

ounds s

terlin

g, and a

ll field

s a

re r

epre

sente

d b

y c

hara

cte

r str

ings in

codepage 5

00. F

inally

, th

e d

ata

is d

elim

ited u

sin

g c

om

mas.

•S

om

e t

ime late

r, A

pplic

ation C

is intr

oduced. It n

eeds the s

am

e d

ata

, but because it is

a p

ackaged

applic

ation fro

m a

vendor

or

may b

e a

n a

pplic

ation that already e

xis

ted,

it e

xpects

data

to a

rriv

e in a

diffe

rent fo

rmat. T

he d

ate

is in U

S form

at, the p

rice is in d

olla

rs a

nd the d

ata

is in X

ML.

•S

o, w

e n

ow

have a

n inte

gra

tion c

hoic

e to m

ake. E

ither

applic

ation C

must be e

nhanced to s

upport

th

e d

ata

form

at betw

een A

and B

, or

applic

ation A

must be e

nhanced to s

upport

applic

ation C

's d

ata

fo

rmat. (

This

is a

n inte

resting u

se o

f th

e w

ord

“enhanced”,

but you'll

pro

bably

want to

use it to

justify

th

e e

xpenditure

!)

•B

y intr

oducin

g a

solu

tion that can m

edia

te b

etw

een these a

pplic

ations, you c

an inte

gra

te them

w

ithout spendin

g tim

e a

nd m

oney m

odifyin

g a

nd r

ete

sting the e

xis

ting a

pplic

ations. M

essage B

roker

is o

ne s

uch s

olu

tion.

Page 11: WebSphere Message Broker 101: The Swiss army knife for ... · WebSphere Message Broker 101: The Swiss army knife for application integration David Coles – WebSphere Message Broker

WS

MQ

MQ

Ap

pli

ca

tio

n C

on

ne

cti

vit

y w

ith

WM

B

•W

MB

can a

ct as a

n inte

rmedia

ry

•F

lexib

le topolo

gie

s

Page 12: WebSphere Message Broker 101: The Swiss army knife for ... · WebSphere Message Broker 101: The Swiss army knife for application integration David Coles – WebSphere Message Broker

Inp

ut so

urc

e

Ou

tput ta

rget

(Fa

ilure

)

•R

eusa

ble

•S

ca

lab

le

•T

ransactio

na

l

Ou

tput ta

rget

Ou

tput ta

rget

Tra

nsfo

rm

Me

ss

ag

e F

low

s

Page 13: WebSphere Message Broker 101: The Swiss army knife for ... · WebSphere Message Broker 101: The Swiss army knife for application integration David Coles – WebSphere Message Broker

•M

essage flo

ws p

rovid

e t

he p

rocessin

g s

equence r

equired to c

onnect applic

ations togeth

er.

•A

message flo

w c

onta

ins the s

et of opera

tions r

equired to take a

message fro

m a

n o

rigin

ating

applic

ation a

nd d

eliv

er

copie

s o

f it, som

e p

ossib

ly t

ransfo

rmed,to

any n

um

ber

of connecte

d

applic

ations for

pro

cessin

g.

•A

s a

message p

asses thro

ugh a

message f

low

, it is tra

nsfo

rmed a

nd r

oute

d a

ccord

ing to the n

odes it

encounte

rs, and the p

rocessin

g d

ecis

ions m

ade w

ithin

those n

odes. Late

r w

e'll

see h

ow

the n

odes

can m

odify t

he v

alu

es w

ithin

, or

transfo

rm the s

tructu

re o

f, a

message to p

rovid

e the d

ata

tr

ansfo

rmations n

ecessary

to d

rive b

ackend s

erv

er

applic

ations.

•F

or

a g

iven a

pplic

ation s

cenario, th

e m

essage f

low

describes a

llpossib

le o

utc

om

es w

hen p

rocessin

g

a m

essage. F

or

exam

ple

, if the m

essage h

as a

hig

h m

oneta

ry v

alu

e, a c

opy o

f it m

ight have to b

e

route

d to a

n a

udit a

pplic

ation. O

r if the m

essage is n

ot

well-

form

ed (

may b

e it's

not encry

pte

d in the

right fo

rmat)

, it m

ight be r

oute

d to a

security

applic

ation to r

ais

e a

n a

lert

.

•E

qually

im

port

ant is

the v

isualiz

ation o

f th

e a

pplic

ation inte

gra

tion w

ithin

then o

rganiz

ation. V

ery

often, fo

r any p

art

icula

r applic

ation s

cenario, th

e a

pplic

ation c

onnectivity r

equirem

ents

(*b

usin

ess*!

) is

held

within

the h

eads o

f dom

ain

expert

s.

Bein

g a

ble

to v

iew

the inte

gra

tion s

tructu

re b

rings b

enefits

in

scenario u

nders

tandin

g, re

use p

ote

ntial, a

nd a

pplic

ation a

rchitectu

re/s

tandard

s c

onfo

rmance.

•A

fter

a m

essage h

as b

een p

rocessed b

y a

message flo

w, th

e f

low

does n

ot m

ain

tain

any s

tate

. It is

possib

le to m

ain

tain

such s

tate

in a

n e

xte

rnal data

base, or

within

the m

essage b

y u

sin

g a

n e

xte

nsib

le

header

such a

s the M

QR

FH

2.

Page 14: WebSphere Message Broker 101: The Swiss army knife for ... · WebSphere Message Broker 101: The Swiss army knife for application integration David Coles – WebSphere Message Broker

•M

essage flo

ws a

re g

ene

ral purp

ose, re

usable

inte

gra

tion a

pplic

ations.

•If y

ou

we

re d

esig

nin

g a

genera

l purp

ose inte

gra

tion a

pplic

ation,lin

kin

g c

lient and s

erv

er

applic

ations, th

e logic

would

com

prise s

epara

te r

ou

tines e

ach p

erf

orm

ing a

well-

defined

function. T

he input

routine w

ould

wait fo

r a m

essage, and a

fte

r re

ceiv

ing it and c

heckin

g

the its

inte

grity

, (w

ell

form

ed

etc

.),

it w

ould

tra

nsfe

r to

the

next

rou

tines to c

ontinue

pro

cessin

g.

•A

fter

perf

orm

ing t

heir p

rocessin

g, (e

.g. en

richin

g/r

efo

rmatt

ing/r

outin

g),

these r

outine

s

would

pass c

ontr

ol on thro

ugh

to

the lo

west

functional le

vels

, w

he

re o

utp

ut

pro

cessin

g

would

occur.

He

re, m

essages w

ould

be w

ritten t

o d

evic

es, subsequently r

ead

by

connecte

d a

pplic

ations. A

t an

y level of pro

cessin

g a

n e

xception

could

be r

ais

ed for

subsequent pro

cessin

g.

•A

fter

the

last outp

ut

routine h

ad c

om

ple

ted, contr

ol w

ould

retu

rn b

ack u

p th

rough t

he

levels

to the input

routine.

Once

here

, all

the c

hanges w

ould

be

com

mitte

d a

nd t

he input

routine w

ould

wa

it for

mo

re input.

Page 15: WebSphere Message Broker 101: The Swiss army knife for ... · WebSphere Message Broker 101: The Swiss army knife for application integration David Coles – WebSphere Message Broker

•M

essage flo

ws a

re tra

nsactional.

•M

essage flo

ws p

rovid

e v

ital pro

cessin

g a

nd d

ata

manip

ula

tion a

nd

are

there

fore

fully

tr

ansactional. A

message flo

w e

ither

com

ple

tes a

ll or

none o

f its p

rocessin

g s

uccessfu

lly.

•H

ow

ever,

if re

quired, in

div

idual nodes c

an e

lect to

perf

orm

opera

tions o

uts

ide o

f th

e m

essage

flow

tra

nsaction. (e

.g. audit)

•M

essage flo

ws a

re m

ultithre

aded.

•A

giv

en m

essage p

assin

g thro

ugh a

series o

f nodes w

ill e

xecute

on a

sin

gle

thre

ad. T

o a

llow

in

cre

ased m

essage thro

ughput, m

essage f

low

s c

an b

e d

efined w

ith m

any a

dditio

nal th

reads

assig

ned to them

. P

eak w

ork

loads u

se a

dditio

nal th

reads,

whic

h a

re p

oole

d d

uring inactivity.

We'll

see m

ore

im

ple

menta

tion d

eta

ils late

r. T

his

means a

pplic

ation s

calin

g c

an b

e a

n

opera

tional ra

ther

than d

esig

n tim

e d

ecis

ion.

•M

essage flo

w n

esting a

nd c

hain

ing a

llow

constr

uction o

f enhanced

capabili

ties.

•S

ophis

ticate

d f

low

s c

an b

e r

apid

ly c

onstr

ucte

d b

y lin

kin

g indiv

idual flow

s togeth

er

as w

ell

as

nesting f

low

s w

ithin

each o

ther.

•R

efe

rences:

•M

essage F

low

overv

iew

at

htt

p:/

/pu

blib

.bou

lde

r.ib

m.c

om

/info

cen

ter/

wm

bhe

lp/v

7r0

m0

/to

pic

/com

.ib

m.e

too

ls.m

ft.d

oc/a

c00

310_

.htm

Page 16: WebSphere Message Broker 101: The Swiss army knife for ... · WebSphere Message Broker 101: The Swiss army knife for application integration David Coles – WebSphere Message Broker

Me

ss

ag

e F

low

Ex

am

ple

Page 17: WebSphere Message Broker 101: The Swiss army knife for ... · WebSphere Message Broker 101: The Swiss army knife for application integration David Coles – WebSphere Message Broker

•H

ere

is a

n e

xam

ple

of a m

essage f

low

.

•T

he In ‘R

ead fro

m M

Q Q

ueue’node tells

the M

essage B

roker

to takes m

essages fro

m a

n M

Q q

ueue

(the n

am

e o

f w

hic

h is e

mbedded a

s a

pro

pert

y o

f th

e n

ode, or

overr

idden b

y a

n a

dm

inis

trato

r at

deplo

ym

ent tim

e).

•T

he m

essage is p

assed o

nto

the ‘Is

Gold

Custo

mer?

’, w

here

a r

outing d

ecis

ion is m

ade b

ased o

n a

field

described in the incom

ing m

essage, again

whic

h is a

pro

pert

y o

n the n

ode its

elf. W

e’ll

see

exactly h

ow

this

conditio

n is s

pecifie

d late

r on.

•If the d

escribed c

onditio

n h

old

s, th

e m

essage is r

oute

d to the ‘G

enera

te W

S R

equest’

node w

here

th

e m

essage is tra

nsfo

rmed –

pre

sum

ably

into

an S

OA

P m

essage that is

recognis

able

by t

he w

eb

serv

ice w

hic

h is invoked b

y the s

ubsequent ‘C

all

WS

’node.

•If the d

escribed c

onditio

n d

oes n

ot hold

, th

e m

essage is r

oute

d to the ‘G

enera

te b

atc

h file

’node,

whic

h form

ats

the m

essage for

subsequent outp

ut to

a file

in the

‘Write

file

’node.

•T

his

flo

w m

ay n

ot te

ll th

e c

om

ple

te inte

gra

tion s

tory

betw

een the c

alli

ng a

pplic

ation a

nd the targ

et

Web S

erv

ice/F

ile a

pplic

ations. F

or

exam

ple

, th

ere

is n

o c

om

munic

ation b

ack to the c

alli

ng a

pplic

ation

to s

ay t

hat th

e m

essage h

as b

een p

rocessed (

or

even r

eceiv

ed).

Nor

is there

any logic

in the

message flo

w t

o c

ope w

ith failu

res –

for

exam

ple

, if the w

eb s

erv

ice is n

ot availa

ble

. T

his

is logic

that

could

be incorp

ora

ted into

the m

essage flo

w, but not vis

ualis

ed h

ere

for

cla

rity

.

Page 18: WebSphere Message Broker 101: The Swiss army knife for ... · WebSphere Message Broker 101: The Swiss army knife for application integration David Coles – WebSphere Message Broker

No

de

s

•T

he b

uild

ing b

locks o

f m

essage flo

ws

•E

ach n

ode type p

erf

orm

s a

diffe

rent

(input, o

utp

ut or

pro

cessin

g)

action

•M

any d

iffe

rent node types

•G

rouped into

logic

al cate

gori

es in t

he

message f

low

editor

•N

earl

y 1

00 n

od

es a

vaila

ble

ou

t-of-

the-

bo

x

(as o

f W

MB

V7)

Page 19: WebSphere Message Broker 101: The Swiss army knife for ... · WebSphere Message Broker 101: The Swiss army knife for application integration David Coles – WebSphere Message Broker

•N

ode

s c

an b

e g

roup

ed in

se

vera

l w

ays; fo

r e

xa

mple

, b

y w

here

in t

he f

low

the

y a

re u

se

d:

•In

pu

t n

od

es d

o n

ot

ha

ve inpu

t te

rmin

als

; pro

cessin

g o

f th

e m

essag

e flo

w s

tart

s w

hen a

messa

ge is

retr

ieve

d f

rom

an in

put d

evic

e, fo

r e

xa

mple

WebS

phere

MQ

.

•O

utp

ut

nod

es d

o n

ot

ha

ve

ou

tpu

t te

rmin

als

(o

r a

t le

ast, t

he

y a

reno

t w

ired t

o a

ny o

ther

no

de

). T

he fin

al

sta

ge o

f ou

tput p

roce

ssin

g is a

fter

a m

essage is p

ut u

sin

g o

ne o

r m

ore

outp

ut

no

de

s, an

d p

rocessin

g

contr

ol re

turn

s t

o th

e inpu

t n

ode

whic

h c

om

mits o

r b

acks o

ut

the

tra

nsaction.

Recalli

ng t

hat

a m

essag

e

flo

w is a

nalo

gous t

o a

fu

nctio

nal decom

positio

n, it m

akes s

en

se th

at th

e t

op m

ost le

vel (i.e

. th

e in

put

nod

e)

con

trols

th

e o

vera

ll tr

ansa

ctio

n.

•P

rocessin

g n

odes a

re n

odes th

at

are

neither

inp

ut

nor

ou

tpu

t nod

es. T

he

y w

ill b

e c

onn

ecte

d t

o n

od

es

both

up

str

ea

m (

i.e.

tow

ard

s t

he inp

ut n

od

es)

and

do

wnstr

eam

(i.e.

tow

ard

s th

e o

utp

ut n

ode

s).

•T

he

y c

an a

lso b

e g

roupe

d b

y th

e f

unction t

hat

the

y p

erf

orm

.

•P

roto

col-

spe

cific

nod

es g

ive t

he b

roke

r th

e a

bili

ty t

o inte

ract

with p

art

icula

r syste

ms, such a

s M

Q a

nd

Web S

erv

ices.

•T

ransfo

rmation n

ode

s w

ill take a

messa

ge in o

ne

fo

rmat

on t

he inp

ut te

rmin

al a

nd o

utp

ut

a c

on

ve

rted

messag

e o

n th

e o

utp

ut te

rmin

al.

•Logic

al constr

ucts

giv

e th

e m

essag

e flo

w d

esig

ne

r th

e v

oca

bula

ryre

quir

ed t

o s

olv

e c

om

ple

x inte

gra

tio

n

scen

ario

s, fo

r e

xa

mp

le, th

e a

bili

ty t

o a

gg

regate

messag

es f

rom

multip

le p

lace

s o

r th

e a

bili

ty to f

ilte

r

messag

es b

ase

d o

n t

heir

co

nte

nt.

•R

efe

ren

ces

•M

ore

on n

od

es c

an b

e fo

und

here

:h

ttp

://p

ub

lib.b

ou

lde

r.ib

m.c

om

/info

cen

ter/

wm

bhe

lp/v

7r0

m0

/to

pic

/com

.ib

m.e

too

ls.m

ft.d

oc/a

c04

550_

.htm

Page 20: WebSphere Message Broker 101: The Swiss army knife for ... · WebSphere Message Broker 101: The Swiss army knife for application integration David Coles – WebSphere Message Broker

Lo

ts o

f N

od

es

are

Bu

ilt

in [

1]

Page 21: WebSphere Message Broker 101: The Swiss army knife for ... · WebSphere Message Broker 101: The Swiss army knife for application integration David Coles – WebSphere Message Broker

•H

ere

's a

lis

t of th

e p

roto

col specific

nodes b

uilt

in to M

essage

Bro

ker

V7. F

or

exam

ple

:

•T

he W

ebS

phere

MQ

nodes a

llow

s M

essage B

roker

to inte

ract

with q

ueues o

n M

Q a

nd M

Qe

queue m

anagers

. F

or

exam

ple

, M

QIn

putis

an input node that tr

iggers

a f

low

when a

message

arr

ives o

n a

queue; M

QO

utp

utputs

a m

essage to a

queue.

•T

he W

ebS

phere

Adapte

rs n

odes p

rovid

es n

ative s

upport

in M

essage B

roker

for

inbound a

nd

outb

ound c

om

munic

ation w

ith E

nte

rprise Info

rmation S

yste

ms.

•W

eb S

erv

ices n

odes p

rovid

e a

ric

h e

nvironm

ent fo

r ru

nnin

g a

s a

Web S

erv

ices r

equesto

r,

pro

vid

er

and inte

rmedia

ry.

Support

for

WS

-Security

, W

S-A

ddre

ssin

g,

import

and e

xport

of W

SD

L

and v

alid

ation a

gain

st th

e W

S-I

Basic

pro

file

. T

he R

egis

tryLookup

and E

ndpoin

tLookup

nodes

pro

vid

e s

upport

for

WebS

phere

Regis

try a

nd R

epository

(W

SR

R).

•H

TT

P n

odes c

om

ple

ment th

e W

eb S

erv

ices c

apabili

ty.

Support

is p

rovid

ed for

HT

TP

1.0

, 1.1

and

HT

TP

S.

•JM

S n

odes w

ork

with *

any*

JM

S 1

.1 c

om

plia

nt pro

vid

er.

•T

he E

mailO

utp

utnode is a

hig

hly

configura

ble

node that allo

ws e

-mail

messages to b

e s

ent over

the S

MT

P p

roto

col. E

mailI

nputallo

ws e

-mails

to b

e r

eceiv

ed fro

m P

OP

3 o

r IM

AP

serv

ers

.

•T

CP

/IP

nodes a

llow

the M

essage B

roker

to c

om

munic

ate

with a

ny c

lient or

serv

er

talk

ing the

ubiq

uitous T

CP

/IP

pro

tocol.

•C

OR

BA

, IM

S a

nd C

ICS

request nodes for

inte

gra

ting w

ith C

OR

BA

, IM

S a

nd C

ICS

applic

ations

respectively

.

Page 22: WebSphere Message Broker 101: The Swiss army knife for ... · WebSphere Message Broker 101: The Swiss army knife for application integration David Coles – WebSphere Message Broker

Lo

ts o

f N

od

es

are

Bu

ilt

in [

2]

•M

an

y o

ther

no

des a

vaila

ble

thro

ug

h p

rod

uct

exte

nsio

ns a

nd s

upport

pacs

•F

or

exam

ple

, W

ebS

phere

TX

, T

ibco

RV

, V

SA

M,

QS

AM

•W

rite

your

ow

n U

ser-

Defin

ed N

odes in C

or

Java

Page 23: WebSphere Message Broker 101: The Swiss army knife for ... · WebSphere Message Broker 101: The Swiss army knife for application integration David Coles – WebSphere Message Broker

•C

ontinuin

g the d

iscussio

n o

n the n

odes insid

e W

ebS

phere

Message B

roker:

•D

ata

base n

odes a

llow

s m

essage flo

ws to inte

ract w

ith m

any d

iffe

rent data

sourc

es,

inclu

din

g D

B2, O

racle

and S

ybase.

•T

imer

nodes p

rovid

e s

upport

for

trig

gering m

essage flo

ws a

nd c

ert

ain

tim

es o

r in

terv

als

.

•T

he R

outing c

ate

gory

allo

ws m

essages to e

asily

flo

w a

round a

netw

ork

, and a

lso a

llow

multip

le

messages to b

e a

ggre

gate

d o

r pro

pagate

d in the c

orr

ect sequence.

•F

ile n

odes a

llow

messages to b

e r

ead fro

m, or

written to the local file

syste

m o

r an F

TP

serv

er.

M

Q F

ile T

ransfe

r E

ditio

n n

odes e

mbed a

n F

TE

Agent in

sid

e the b

roker

to a

llow

it

to p

erf

orm

pro

cessin

g o

n the b

ack o

f a file

tra

nsfe

r action.

•T

he T

ransfo

rmation c

ate

gory

pro

vid

es M

essage B

roker

with the c

apabili

ty to tra

nsfo

rm m

essages

from

one form

at in

to a

noth

er.

Fiv

e w

ays o

f doin

g this

are

availa

ble

out-

of-

the-b

ox.

More

on these

late

r.

•C

onstr

uction n

odes

•N

odes h

ave e

rror

handlin

g a

s p

art

of th

eir d

esig

n. If a

n e

rror

is d

ete

cte

d w

ithin

a p

rim

itiv

e n

ode

(e.g

. data

base e

rror)

, th

e m

essage is tra

nsfe

rred to the failu

reoutp

ut te

rmin

al. If th

e failu

re

term

inal is

not connecte

d, an e

xception is g

enera

ted a

nd p

ropagate

d b

ack tow

ard

s the input

node. T

here

is a

lso a

specia

lized T

hro

w n

ode w

hic

h a

llow

s a

flo

wdesig

ner

to g

enera

te a

n

exception in a

contr

olle

d w

ay.

Nodes c

an h

ave tra

nsaction s

cope insid

e o

r outs

ide o

f th

e flo

w.

•A

Try

Catc

hnode is u

sed to p

rocess a

ny s

uch e

xceptions. Its ‘tr

y’te

rmin

al is

used for

norm

al

pro

cessin

g, but if a

n e

xception o

ccurs

alo

ng this

path

, th

e T

ryC

atc

hnode r

egain

s c

ontr

ol and the

origin

al m

essage is p

ropagate

d thro

ugh the ‘catc

h’te

rmin

al.

•If the m

essage r

eaches the input node, it is s

ubje

ct to

"back o

ut"

pro

cessin

g. In

this

case, it w

ill

be p

ropagate

d d

ow

n its

catc

h o

r fa

ilure

term

inal, r

etu

rned to the input queue, put to

a b

ack o

ut or

dead letter

queue, or

dis

card

ed, as a

ppro

priate

.

Page 24: WebSphere Message Broker 101: The Swiss army knife for ... · WebSphere Message Broker 101: The Swiss army knife for application integration David Coles – WebSphere Message Broker

Actio

nin

pu

t te

rmin

al

inp

ut

co

nn

ecto

r

ou

tput

co

nn

ecto

rs

no

de

inp

ut

me

ssa

ge

tr

ee

ou

tput

term

ina

ls

err

or

term

ina

l

ou

tput

me

ssa

ge

tr

ees

No

de

Te

rmin

olo

gy

Page 25: WebSphere Message Broker 101: The Swiss army knife for ... · WebSphere Message Broker 101: The Swiss army knife for application integration David Coles – WebSphere Message Broker

•M

essage n

odes p

rovid

e t

he indiv

idual pro

cessin

g e

lem

ents

that m

ake u

p a

message flo

w.

•W

e'v

e s

een that a m

essage flo

w is the c

om

bin

ation o

f opera

tions r

equired to a

chie

ve a

pplic

ation

inte

gra

tion. W

e b

uild

a m

essage flo

w fro

m s

mall

units c

alle

d n

odes; th

ese n

odes r

epre

sent th

e b

ase

ele

ments

required to c

onnect m

essagin

g a

pplic

ations togeth

er.

•Lookin

g a

t a m

essage f

low

, you c

an s

ee s

evera

l obje

cts

identifiable

with this

pro

cessin

g.

•N

odes r

epre

sent fu

nctional ro

utines e

ncapsula

ting inte

gra

tion logic

•T

erm

inals

repre

sent th

e v

arious o

utc

om

es p

ossib

le fro

m n

ode p

rocessin

g

•C

onnecto

rs join

the v

arious n

odes thro

ugh their term

inals

•A

message p

rocessin

g n

ode d

efines a

sin

gle

logic

al opera

tion o

n a

message.

•A

message p

rocessin

g n

ode is a

sta

nd a

lone p

rocedure

that re

ceiv

es a

message, perf

orm

s a

specific

action a

gain

st it, and o

utp

uts

zero

or

more

messages a

s a

result

of th

e a

ction it has taken.

•T

he a

ction r

epre

sente

d b

y a

message p

rocessin

g n

ode e

ncapsula

tes

a u

sefu

l and r

eusable

pie

ce o

f in

tegra

tion logic

. N

odes c

an b

e thought of as r

eusable

com

ponents

in a

n inte

gra

tion lib

rary

.

Page 26: WebSphere Message Broker 101: The Swiss army knife for ... · WebSphere Message Broker 101: The Swiss army knife for application integration David Coles – WebSphere Message Broker

•A

nod

e is join

ed t

o its

neig

hb

ou

rs in

th

e d

ata

flo

w t

hro

ug

h c

on

necto

rs a

ttach

ed t

o

its d

ata

term

inals

.

•E

ve

ry n

ode h

as a

fix

ed n

um

be

r o

f co

nn

ection p

oin

ts k

no

wn a

s "

inp

ut"

te

rmin

als

an

d "

outp

ut"

te

rmin

als

.

These a

llow

it to

be

conn

ecte

d t

o its

neig

hbou

rs. E

ach n

ode n

orm

ally

has o

ne inp

ut

term

inal up

on

whic

h it

receiv

es m

essa

ges,

and m

ultip

le o

utp

ut te

rmin

als

fo

r diffe

ren

t pro

cessin

g r

esults w

ithin

the n

ode.

Diffe

rent

types o

f no

de h

ave d

iffe

rent

nu

mb

ers

of

term

inals

.

•A

conn

ecto

r jo

ins a

n o

utp

ut te

rmin

al o

f o

ne n

ode t

o a

n inp

ut te

rmin

al o

f th

e n

ext

no

de in

th

e m

essage

flo

w.

Yo

u c

an le

ave

an o

utp

ut te

rmin

al u

nco

nn

ecte

d,

or

yo

u c

an c

on

nect

a s

ingle

ou

tpu

t te

rmin

al to

mo

re t

ha

n

one t

arg

et n

ode

.

•A

fter

a n

od

e h

as fin

ished p

rocessin

g a

me

ssag

e, th

e c

on

necto

rs d

efine

d fro

m th

e n

ode’s

outp

ut

term

inals

dete

rmin

e w

hic

h n

od

es p

rocess t

he m

essage n

ext. If

a n

ode h

as m

ore

than

on

e o

utp

ut

term

inal con

necte

d

to a

ta

rge

t n

ode

, it is t

he n

od

e (

no

t yo

u)

that d

ete

rmin

es th

e o

rder

in w

hic

h t

he

diffe

rent

execution p

ath

s a

re

execute

d. If

a s

ingle

outp

ut te

rmin

al h

as m

ore

tha

n o

ne c

on

necto

r to

a t

arg

et

no

de, it is th

e b

roker

(ag

ain

,

not

you

) w

hic

h d

ete

rmin

es this

execu

tion

ord

er.

•A

nod

e d

oes n

ot alw

ays p

roduce a

n o

utp

ut m

essage

fo

r e

very

outp

ut

term

inal: o

fte

n it p

roduces o

ne

ou

tput

for

a s

pecific

te

rmin

al dep

en

din

g o

n th

e m

essa

ge r

eceiv

ed. E

.g. a filt

er

no

de w

ill t

ypic

ally

se

nd a

messag

e

on e

ithe

r th

e t

rue o

r fa

lse t

erm

inal, b

ut

not

both

.

•W

hen the p

rocessin

g d

ete

rmin

ed b

y o

ne c

onn

ecto

r has b

een c

om

ple

ted, th

e n

ode r

eis

su

es t

he m

essag

e to

the n

ext

co

nne

cto

r, u

ntil all

possib

le p

ath

s a

re c

om

ple

ted. U

pd

ate

s t

o a

message

are

ne

ver

pro

pag

ate

d t

o

pre

vio

usly

execu

ted

nod

es,

only

to f

ollo

win

g n

od

es.

•T

he m

essa

ge

flo

w c

an o

nly

sta

rt p

rocessin

g t

he n

ext

messa

ge w

hen

all

path

s th

rough t

he

messa

ge

flo

w

(tha

t is

, all

conn

ecte

d n

odes fro

m a

ll outp

ut te

rmin

als

, as a

ppro

pri

ate

) h

ave

be

en c

om

ple

ted.

Page 27: WebSphere Message Broker 101: The Swiss army knife for ... · WebSphere Message Broker 101: The Swiss army knife for application integration David Coles – WebSphere Message Broker

Op

en

, exte

nsib

le t

oo

lin

g f

or

cre

ati

ng

messag

e f

low

s

Page 28: WebSphere Message Broker 101: The Swiss army knife for ... · WebSphere Message Broker 101: The Swiss army knife for application integration David Coles – WebSphere Message Broker

De

ve

lop

be

st-

pra

cti

ce

so

luti

on

s q

uic

kly

u

sin

g p

att

ern

s

Page 29: WebSphere Message Broker 101: The Swiss army knife for ... · WebSphere Message Broker 101: The Swiss army knife for application integration David Coles – WebSphere Message Broker

…d

ra

Cs

ci

hp

ar

G,

ht

im

Sd

er

F

Inp

ut

Me

ss

ag

e B

it-s

tre

am

…n

/<

ht

im

S.

rM

>e

ma

n<

>r

ed

ro

<

Ou

tpu

t M

es

sa

ge B

it-s

trea

m

Pars

er

convert

s

bit-s

tream

to

logic

al str

uctu

re

Model

Pars

er

convert

s

logic

al str

uctu

re

to b

it-s

tream

Model

Pa

rse

rs

Page 30: WebSphere Message Broker 101: The Swiss army knife for ... · WebSphere Message Broker 101: The Swiss army knife for application integration David Coles – WebSphere Message Broker

•O

n the p

revio

us s

lide w

e s

aw

that obje

cts

calle

d “

message tre

es”

are

sent to

a n

ode’s

in

put te

rmin

als

, and e

ither

the s

am

e o

r diffe

rent m

essage tre

e is p

ropagate

d fro

m a

node’s

outp

ut te

rmin

als

.

•T

he m

essage tre

e is a

logic

al definitio

n o

f a m

essage p

rocessed b

y t

he b

roker.

It’s d

escribed a

s a

tr

ee b

ecause m

essages a

re t

ypic

ally

hie

rarc

hic

al in

str

uctu

re; a

good e

xam

ple

of th

is is X

ML. O

ther

message form

ats

too, are

als

o o

ften d

erived fro

m c

om

ple

x s

tructu

res w

hic

h them

selv

es c

an b

e

derived fro

m c

om

ple

x s

tructu

res, and s

o o

n,

whic

h g

ives them

a tre

e-lik

e s

hape w

ith leaf nodes

repre

senting s

imple

data

types.

•In

WebS

phere

Message B

roker,

pars

ers

have the job o

f convert

ing b

etw

een p

hysic

al m

essages (

bit-

str

eam

s)

and logic

al tr

ees. W

hen a

message a

rriv

es a

t th

e b

roker

thro

ugh a

n input node, th

e

message b

it-s

tream

is c

onvert

ed into

a tre

e s

tructu

re b

y t

he p

ars

er,

whic

h typic

ally

uses a

model to

drive the form

of th

e logic

al tr

ee. B

uilt

-in p

ars

ers

handle

well

know

n h

eaders

within

the m

essage

(MQ

MD

, M

QR

FH

2 e

tc.)

. F

inally

the u

ser

data

is p

ars

ed into

the tre

e u

sin

g the d

om

ain

pars

er

as

identified in the M

QR

FH

2 (

or

input node).

Message B

roker’s b

uilt

-in p

ars

ers

support

multip

le d

om

ain

s

(MR

M, S

OA

P, X

MLN

SC

, D

ata

Obje

ct, X

MLN

S, JM

SM

ap, JM

SS

tream

, M

IME

, ID

OC

, B

LO

B a

nd

XM

L)

to e

nable

pars

ing o

f user

and industr

y s

tandard

form

ats

.

•A

s the logic

al tr

ee is p

assed fro

m n

ode to n

ode, th

e form

of th

elo

gic

al tr

ee m

ay c

hange d

ependin

g

on w

hat th

e n

ode is d

oin

g.

•W

hen the m

essage a

rriv

es a

t an o

utp

ut node, th

e p

ars

er

convert

s the logic

al tr

ee b

ack into

a p

hysic

al

bit-s

tream

where

it can b

e o

utp

ut to

the e

xte

rnal re

sourc

e,

where

itcan b

e r

ead b

y t

he targ

et

(receiv

ing)

applic

ation.

How

ever,

note

that an o

utp

ut node n

eed n

ot in

dic

ate

the e

nd o

f a flo

w;

it is

possib

le to o

utp

ut to

multip

le d

estinations w

ithin

a s

ingle

invocation o

f a m

essage f

low

. In

this

case,

the logic

al tr

ee c

an b

e p

assed o

n to o

ther

nodes a

nd m

anip

ula

ted

furt

her,

even a

fter

it h

as b

een

convert

ed b

ack into

a p

hysic

al bit-s

tream

for

this

part

icula

r outp

ut node.

Page 31: WebSphere Message Broker 101: The Swiss army knife for ... · WebSphere Message Broker 101: The Swiss army knife for application integration David Coles – WebSphere Message Broker

© Transport for London

Page 32: WebSphere Message Broker 101: The Swiss army knife for ... · WebSphere Message Broker 101: The Swiss army knife for application integration David Coles – WebSphere Message Broker

•T

his

is a

map o

f th

e L

ondon U

nderg

round r

ailw

ay s

yste

m f

rom

1921

. N

otice h

ow

the

lines r

ela

te to t

he

ph

ysic

al la

yout

of th

e s

tations r

ath

er

than t

he logic

al la

yout.

It

makes it

really

difficult to w

ork

with this

ma

p, pa

rtic

ula

rly a

round the c

entr

al a

rea.

•H

arr

y B

eck (

pic

ture

d)

pro

duced a

new

sty

le m

ap

in 1

933. B

eck w

as

an U

nderg

round

em

plo

yee

who

re

alis

ed that, b

eca

use the r

ailw

ay r

an m

ostly u

nde

rgro

und,

the

ph

ysic

al

locations o

f th

e s

tations w

ere

irr

ele

vant to

the t

ravelle

r w

an

ting to k

now

ho

w t

o g

et

to

one s

tation f

rom

anoth

er

—only

the topolo

gy o

f th

e r

ailw

ay m

att

ere

d.

•S

ee h

ttp:/

/en

.wik

ipedia

.org

/wik

i/H

arr

y_B

eck_%

28gra

phic

_desig

ner%

29

for

more

info

rmation.

Page 33: WebSphere Message Broker 101: The Swiss army knife for ... · WebSphere Message Broker 101: The Swiss army knife for application integration David Coles – WebSphere Message Broker

© Transport for London

Page 34: WebSphere Message Broker 101: The Swiss army knife for ... · WebSphere Message Broker 101: The Swiss army knife for application integration David Coles – WebSphere Message Broker

•T

his

is H

arr

y’s

map fro

m 1

933.

•H

e h

ad d

evis

ed a

vastly s

implif

ied m

ap, consis

ting o

f sta

tions, str

aig

ht lin

e s

egm

ents

connecting

them

, and the T

ham

es; lin

es r

an o

nly

vert

ically

, horizonta

lly,

or

at 45 d

egre

es. T

he U

nderg

round w

as

initia

lly s

ceptical of his

pro

posal —

it w

as a

n u

ncom

mis

sio

ned

spare

-tim

e p

roje

ct, a

nd it te

nta

tively

in

troduced it to

the p

ublic

in a

sm

all

pam

phle

t. It w

as im

media

tely

popula

r, a

nd e

ver

sin

ce the

Underg

round h

as u

sed topolo

gic

al m

aps to illu

str

ate

the n

etw

ork

.

•In

Message B

roker

term

s, H

arr

y w

as the “

pars

er”

–he took the p

hysic

al re

pre

senta

tion o

f th

e L

ondon

Underg

round a

nd c

onvert

ed into

a logic

al str

uctu

re. T

his

logic

alstr

uctu

re is v

ery

much e

asie

r to

work

w

ith.

•M

essage B

roker

uses logic

al str

uctu

res to d

escribe p

hysic

al data

for

sim

ilar

reasons: it m

akes them

m

uch e

asie

r to

work

with, part

icula

rly w

hen a

ddre

ssin

g o

r convert

ing b

etw

een d

ata

ele

ments

. W

e’ll

see e

xam

ple

s o

f th

is late

r on.

•S

ee h

ttp://e

n.w

ikip

edia

.org

/wik

i/T

ube_m

ap

for

more

info

rmation.

Page 35: WebSphere Message Broker 101: The Swiss army knife for ... · WebSphere Message Broker 101: The Swiss army knife for application integration David Coles – WebSphere Message Broker

<order>

<name>

<first>John</first>

<last>Smith</last>

</name>

<item>Graphics Card</item>

<quantity>32</quantity>

<price>200</price>

<date>07/11/09</date>

</order>

John,Smith,Graphics Card,

32,200,07/11/09

John Smith............

Graphics Card.........

3220020071109.........

Ord

er

Nam

eIt

em

Qty

Price

Date

First

Last

Str

ing

Str

ing

Str

ing

Inte

ger

Inte

ger

Date

Physic

al

Logic

al

Me

ss

ag

e M

od

eli

ng

Page 36: WebSphere Message Broker 101: The Swiss army knife for ... · WebSphere Message Broker 101: The Swiss army knife for application integration David Coles – WebSphere Message Broker

•H

ere

is a

n e

xam

ple

of how

a p

hysic

al data

str

uctu

re c

ould

be m

apped to a

logic

al tr

ee.

•N

otice h

ow

multip

le p

hysic

al fo

rmats

can c

orr

espond to the s

am

e logic

al tr

ee. T

he

firs

t physic

al fo

rmat is

an X

ML s

tructu

re that show

s o

ur

Ord

er

message. T

he s

econd

is a

com

ma s

epara

ted v

alu

e (

CS

V)

str

uctu

re o

f th

e s

am

e. T

he third c

om

prises a

set of fixed

length

fie

lds in a

custo

m w

ire form

at.

•B

y m

anip

ula

ting the logic

al tr

ee insid

e the M

essage B

roker

rath

er

than the p

hysic

al bit-s

tream

, th

e n

odes c

an b

e c

om

ple

tely

unaw

are

of th

e p

hysic

al fo

rmat of th

e d

ata

bein

g m

anip

ula

ted. It

als

o m

akes it easy to intr

oduce n

ew

message form

ats

into

the b

roker.

•A

pplic

ations h

ave a

nd r

equire d

ivers

e d

ata

form

ats

.

•W

e a

ll know

that X

ML is the d

ata

form

at th

at's

goin

g to s

olv

e e

very

data

pro

cessin

g p

roble

m that

exis

ts! W

e a

lso k

now

that "X

ML+

+",

the follo

w-o

n c

om

patible

meta

form

at th

at som

eone in a

re

searc

h labora

tory

is w

ork

ing o

n w

ill s

olv

e a

ll th

e p

roble

ms w

edon't

even k

now

we h

ave today!

The fact is

that, w

ithout w

anting to a

ppear

cynic

al, e

very

genera

tion g

oes thro

ugh this

pro

cess.

Sure

ly it w

as the s

am

e w

hen C

OB

OL s

upers

eded a

ssem

ble

r.

•T

he fact is

, th

at fo

r his

toric, te

chnic

al, w

him

sic

al, p

olit

ical,

geogra

phic

al, industr

ial and a

whole

host of oth

er

reasons y

ou p

robably

never

even thought of, a

hugely

div

ers

e r

ange o

f data

form

ats

exis

t and a

re u

sed s

uccessfu

lly b

y a

myriad o

f applic

ations e

very

second o

f every

day.

It's

som

eth

ing that

we h

ave to liv

e w

ith a

nd e

mbra

ce b

ecause it is

n't

goin

g to g

et any b

etter

any t

ime

soon.

•T

he a

dvanta

ge W

ebS

phere

Message B

roker

brings b

y m

odelli

ng a

ll th

ese m

essages is that w

e

can r

ise a

bove the m

essage form

at deta

il; s

o that

wheth

er

it's

ata

g d

elim

ited S

WIF

T o

r E

DIF

AC

T m

essage, a c

usto

m r

ecord

form

at clo

sely

mappin

g a

C o

r C

OB

OL d

ata

str

uctu

re, or

good o

ld X

ML, w

e c

an talk

about m

essages in a

consis

tent, form

atin

dependent w

ay.

Message

Bro

ker

can m

anage this

div

ers

ity.

Page 37: WebSphere Message Broker 101: The Swiss army knife for ... · WebSphere Message Broker 101: The Swiss army knife for application integration David Coles – WebSphere Message Broker

•T

he L

ogic

al M

essage M

odel.

•R

econsid

er

messages a

nd their s

tructu

re. W

hen w

e a

rchitect

messages (

no m

atter

what th

e

underlyin

g tra

nsport

technolo

gy),

we c

oncern

ours

elv

es firstly w

ith the logic

al str

uctu

re. F

or

exam

ple

, a funds tra

nsfe

r m

essage m

ight conta

in a

n a

mount

in a

part

icula

r curr

ency,

a

transaction d

ate

and the r

ele

vant account deta

ils o

f th

e p

art

ies

involv

ed. T

hese a

re the im

port

ant

busin

ess e

lem

ents

of th

e m

essage; w

hen d

iscussin

g the m

essage, w

e r

efe

r to

these e

lem

ents

.

•H

ow

ever,

when w

e c

om

e to r

ealiz

e the m

essage, w

e h

ave to c

hoose a

specific

data

form

at. T

his

m

ay b

e d

riven b

y m

any f

acto

rs, but w

e h

ave to c

hoose o

ne.

You m

ay b

e a

ware

of th

e

advanta

ges o

f various m

essage form

ats

or

have y

our

ow

n p

ers

onal fa

vourite

, or

may fancy

inventing a

new

one, but th

e fact re

main

s that you h

ave to c

hoose a

physic

al *w

ire f

orm

at*

. S

o

for

our

transfe

r m

essage,

we m

ight decid

e to u

se X

ML,

with its

ele

ments

, attribute

s a

nd P

CD

AT

A

(and a

DT

D,

if w

e're b

ein

g r

eally

exact)

, or

we m

ight m

ap m

ore

clo

sely

to a

C d

ata

str

uctu

re

modelli

ng o

ur

message w

ith ints

, short

s, chars

etc

. and w

orr

y a

bout *t

heir*

various

repre

senta

tions(!

)

•T

he L

ogic

al m

essage m

odel pro

vid

ed b

y W

ebS

phere

Message B

roker

allo

ws o

ne to d

escribe a

m

essage in term

s o

f a tre

e o

f ele

ments

, each o

f w

hic

h h

as a

(possib

ly u

ser

defined)

type. A

t th

e

message tre

e leaf nodes, th

e e

lem

ents

have s

imple

types s

uch a

s s

trin

gs, in

tegers

, decim

als

, boole

ans

etc

. M

ore

over,

ele

ments

can h

ave v

arious c

onstr

ain

ts a

nd q

ualif

iers

applie

d to them

th

at m

ore

fully

describe them

; e.g

. ele

ments

mig

ht be o

ptional, a

ppear

in a

cert

ain

ord

er

or

only

conta

in c

ert

ain

valu

es.

Page 38: WebSphere Message Broker 101: The Swiss army knife for ... · WebSphere Message Broker 101: The Swiss army knife for application integration David Coles – WebSphere Message Broker

Message S

et

C H

eader XM

L

Schem

a

CO

BO

L

Copybook

WS

DL

DT

D

File

Im

port

Ente

rprise

Info

rma

tion

Syste

m

(SA

P, S

iebel,

People

Soft)

Pre

-built

SO

AP

, M

IME

, C

SV

, ID

OC

, S

WIF

T,

ED

IFA

CT

, X

12,

FIX

, H

L7,

etc

Define

your

ow

n

usin

g the

Eclip

se-b

ased

Toolin

g

Pars

ers

Message B

roker

Cre

ati

ng

Me

ss

ag

e M

od

els

Page 39: WebSphere Message Broker 101: The Swiss army knife for ... · WebSphere Message Broker 101: The Swiss army knife for application integration David Coles – WebSphere Message Broker

•T

his

slid

e d

escribes s

om

e o

f th

e o

ptions a

vaila

ble

fo

r cre

ating m

essage m

odels

.

•F

irstly, if y

ou h

ave m

essages d

escribed b

y C

OB

OL c

op

ybooks, C

header

file

s X

ML

DT

Ds/S

chem

as o

r W

SD

L,

use th

e W

ebS

phere

Message B

roker

supplie

d im

port

ers

to

genera

te y

ou

r m

essage m

odel. A

wid

e r

ange o

f im

port

ers

exis

t, s

oth

at

you c

an k

ick

sta

rt y

our

message m

odelli

ng.

•S

econdly

, if y

ou w

ish to u

se t

he S

AP

, S

iebel or

People

Soft n

odes

insid

e W

ebS

phere

Message B

roker

V6.1

, you c

an c

onstr

uct

message m

odels

directly f

rom

the

Busin

ess

Obje

cts

on these

syste

ms.

•T

hirdly

, you c

an u

se p

re-b

uilt

models

such a

s tho

se for

SW

IFT

me

ssages.

•F

inally

, you c

an u

se g

raphic

al m

odelli

ng a

vaila

ble

in the M

essage B

roker

Toolk

it to

model your

messages.

You'v

e s

ee

n a

pplic

ation c

onnections a

nd p

rocessin

g

constr

ucte

d u

sin

g m

essage flo

ws a

nd n

odes;

the M

essage B

roker

Toolk

it p

rovid

es a

sim

ilarly v

isual appro

ach to

message m

odelli

ng.

Page 40: WebSphere Message Broker 101: The Swiss army knife for ... · WebSphere Message Broker 101: The Swiss army knife for application integration David Coles – WebSphere Message Broker

•G

raphic

al, e

asy t

o u

se

•D

rag a

nd D

rop f

ield

s,

apply

functions

•C

onvert

XM

L t

o

an

yth

ing

•U

ses s

tandard

X

SL S

tyle

sh

eets

•D

escribe p

ow

erf

ul

transfo

rmations q

uic

kly

•U

ses S

QL-b

ased

la

nguage (

ES

QL)

•U

ses J

ava

pro

gra

mm

ing

language

•A

bili

ty to

use X

Path

•R

un a

W

ebS

phere

T

ransfo

rmation

Exte

nder

map

•T

ransfo

rm u

sin

g

PH

P s

cripts

•P

HP

5.2

com

plia

nt

Po

we

rfu

l M

es

sa

ge

Tra

ns

form

ati

on

O

pti

on

s

Page 41: WebSphere Message Broker 101: The Swiss army knife for ... · WebSphere Message Broker 101: The Swiss army knife for application integration David Coles – WebSphere Message Broker

•T

here

are

severa

l options a

vaila

ble

to y

ou o

ut-

of-

the-b

ox f

or

transfo

rmin

g b

etw

een

message form

ats

:

•U

se G

raphic

al M

appin

g to v

isually

repre

sent

messages a

nd tra

nsfo

rm them

. T

he M

essage b

roker

has a

mappin

g n

ode to a

llow

s u

sers

to v

isualiz

e a

nd tra

nsfo

rm m

essages. T

he m

appin

g n

ode

pre

sents

input and o

utp

ut m

essage v

iew

s;

i.e.

vis

ualis

ation o

f m

essage d

efinitio

ns. U

sers

can “

map”

ele

ments

fro

m the input m

essage to the o

utp

ut m

essage u

sin

g “

dra

g a

nd d

rop”

opera

tions. M

ore

com

ple

x o

pera

tions a

re p

ossib

le, such a

s fie

ld c

oncate

nation. G

raphic

al m

appin

g is m

ost effective

when y

ou h

ave r

ela

tively

sim

ple

tra

nsfo

rmations to p

erf

orm

and y

ou d

on’t w

ant to

use a

pro

gra

mm

ing

language (

ES

QL o

r Java).

•X

SLT

(eX

tensib

leS

tyle

sheetLanguage T

ransfo

rmations)

is a

language for

describin

g m

essage

transfo

rmations. T

here

is a

node in W

ebS

phere

Message B

roker

that allo

ws y

ou to c

onvert

XM

L

messages u

sin

g s

tyle

sheets

develo

ped in this

language.

•T

he C

om

pute

node u

ses E

SQ

L (

Exte

nded S

tructu

red Q

uery

Language).

This

is a

language d

erived

from

SQ

L3, and is p

art

icula

rly s

uited to m

anip

ula

ting b

oth

data

base a

nd m

essage d

ata

. Y

ou d

o this

w

ith a

sin

gle

synta

x (

word

s)

whic

h h

as a

com

mon s

em

antic (

meanin

g).

E

SQ

L a

ddre

sses m

essage

field

s u

sin

g a

natu

ral synta

x.

For

exam

ple

, the fourt

h tra

velle

r in

a tra

vel re

quest m

essage c

ould

be:

InputR

oot.B

ody.T

ravelR

equestM

essage.T

ravelle

rDeta

ils[4

].LastN

am

e

•E

SQ

L h

as a

ric

h s

et of basic

data

types a

nd o

pera

tors

, as w

ell

as the k

ind o

f sta

tem

ents

and

functions y

ou're u

sed to fro

m p

rocedura

l pro

gra

mm

ing languages, to

allo

w y

ou to p

erf

orm

pow

erf

ul

transfo

rmations.

Page 42: WebSphere Message Broker 101: The Swiss army knife for ... · WebSphere Message Broker 101: The Swiss army knife for application integration David Coles – WebSphere Message Broker

•C

ontinuin

g the o

ptions a

vaila

ble

to y

ou for

transfo

rmin

g b

etw

een

message form

ats

:

•Y

ou c

an a

lso u

se the p

ow

er

of Java to r

oute

and tra

nsfo

rm y

our

messages. T

he J

avaC

om

pute

node

is fully

inte

gra

ted into

the E

clip

se D

evelo

pm

ent E

nvironm

ent to

pro

vid

ing u

sabili

ty a

ids s

uch a

s

conte

nt assis

t and incre

menta

l com

pila

tion. Y

ou c

an r

efe

r to

ele

ments

usin

g a

n e

xpre

ssiv

e X

PA

TH

synta

x, so that m

essage n

avig

ation a

nd e

lem

ent cre

ation a

nd m

odific

ation a

re v

astly s

implif

ied, and

com

para

ble

in s

implic

ity to E

SQ

L f

ield

refe

rences. JD

BC

type 4

support

allo

ws y

ou to p

erf

orm

data

base a

nd m

essage tre

e o

pera

tions in the J

ava C

om

pute

node. O

n z

/OS

Java w

ork

load is e

ligib

le

for

offlo

ad o

nto

the z

Series

Applic

ation A

ssis

t P

rocessors

zA

AP

.

•Y

ou c

an a

lso u

se P

HP

to tra

nsfo

rm y

our

messages.

•A

s a

separa

te p

roduct, y

ou c

an a

lso u

se W

ebS

phere

Tra

nsfo

rmation

Exte

nder

maps to d

escribe

transfo

rmations.

•Y

ou c

an m

ix a

nd m

atc

h y

our

transfo

rmation s

tyle

s, or

use just one thro

ughout your

ente

rprise. It w

ill

pro

bably

be y

our

skill

set w

hic

h d

ete

rmin

es w

heth

er

you c

hose to

use G

raphic

al M

appin

g, Java,

XS

LT

, E

SQ

L o

r P

HP

to p

erf

orm

your

message r

outing a

nd tra

nsfo

rmation.

Page 43: WebSphere Message Broker 101: The Swiss army knife for ... · WebSphere Message Broker 101: The Swiss army knife for application integration David Coles – WebSphere Message Broker

public class jcn extends MbJavaComputeNode {

public void evaluate(MbMessageAssembly assembly) throws MbException {

...

String lastName =

(String)assembly.getMessage().evaluateXPath(“/Body/Order/Name/Last”);

...

}

} IF Body.Order.Date < ‘2008/01/01’THEN

INSERT INTO Database.OldOrders (LastName,Item,Quantity)

VALUES (Body.Order.Name.Last,

Body.Order.Item,

Body.Order.Quantity);

ENDIF;

Ea

sil

y A

dd

res

s M

es

sa

ge

Ele

me

nts

Page 44: WebSphere Message Broker 101: The Swiss army knife for ... · WebSphere Message Broker 101: The Swiss army knife for application integration David Coles – WebSphere Message Broker

•E

ach n

ode’s

configura

tion (

whic

h inclu

des s

om

e J

ava logic

in the c

ase o

f th

e J

ava

Com

pute

node

) dic

tate

s w

hat

yo

u w

an

t th

e n

ode t

o d

o,

and t

his

ma

y inclu

de

manip

ula

tion o

f o

ne o

r m

ore

ele

ments

in the m

essage t

ree.

•H

ere

are

som

e e

xam

ple

s o

f node

configura

tions that add

ress e

lem

ents

in the logic

al

tree

.

•In

most cases, ele

ments

can b

e a

ddre

ssed u

sin

g e

ither

XP

AT

H (

as s

how

n in the

JavaC

om

pute

and R

oute

) o

r E

SQ

L (

as s

ho

wn in th

e D

ata

Inse

rtnode).

Page 45: WebSphere Message Broker 101: The Swiss army knife for ... · WebSphere Message Broker 101: The Swiss army knife for application integration David Coles – WebSphere Message Broker

Bro

ker

Message

Bro

ker

Toolk

it

Message

Bro

ker

Explo

rer

Exe

cu

tio

nG

rou

p

Exe

cu

tio

nG

rou

p

Arc

hit

ec

ted

fo

r H

igh

Pe

rfo

rma

nc

e a

nd

S

ca

lab

ilit

y

•M

essage B

roker

Toolk

it

•D

evelo

pm

ent an

d T

est E

nvironm

ent

•B

uilt

on R

ational A

pplic

ation

Develo

per

•M

essage B

roker

Exp

lore

r

•A

dvanced A

dm

inis

tration T

ool

•B

uilt

on M

Q E

xplo

rer

•B

roker

•S

tandalo

ne r

untim

e e

nvironm

ent

that

runs m

essage flo

ws

•E

xecution g

roups for

isola

tion a

nd

scala

bili

ty

•M

an

y d

iffe

ren

t pla

tfo

rms

•B

uild

s o

n a

n M

Q q

ueue m

anager

Page 46: WebSphere Message Broker 101: The Swiss army knife for ... · WebSphere Message Broker 101: The Swiss army knife for application integration David Coles – WebSphere Message Broker

•N

ow

that

we'v

e u

nders

tood the a

rchitectu

ral com

ponents

of W

ebS

phere

Bro

ker,

(m

essage flo

ws, nodes a

nd the logic

al m

essage m

odel), w

e‘ll

see h

ow

these e

lem

ents

are

used w

ithin

the b

rokers

. S

evera

l diffe

rent com

ponents

form

an o

pera

tional bro

ker.

•T

he thre

e m

ajo

r com

ponents

are

the M

essage B

roker

Toolk

it a

nd the b

roker

runtim

e, and the M

B

Explo

rer.

•W

ebS

phere

Message B

roker

Toolk

it

•T

he W

ebS

phere

Message B

roker

Toolk

it u

ses the E

clip

se P

latform

, w

hic

h is a

n e

xte

nsib

le p

latform

fo

r develo

pin

g Inte

gra

ted D

evelo

pm

ent E

nvironm

ents

(ID

Es).

A

ll th

e o

bje

cts

required to p

erf

orm

applic

ation inte

gra

tion u

sin

g W

ebS

phere

Message B

roker

are

develo

ped, deplo

yed a

nd m

onitore

d

insid

e this

pla

tform

.

•T

he E

clip

se P

latform

pro

vid

es s

tandard

ways t

o b

uild

pro

jects

, perf

orm

vers

ion c

ontr

ol, a

nd p

rovid

e

for

the d

evelo

pm

ent of custo

m p

lug-ins, such a

s r

esourc

e e

ditors

to a

llow

users

to c

reate

pro

ject

resourc

es e

asily

. E

xam

ple

s a

re c

usto

m e

ditors

to a

id flo

w c

reation,

ES

QL e

ditin

g a

nd s

ynta

x

checkin

g, m

essage s

et

modelli

ng, and a

raft o

f oth

er

activitie

s.

•T

he b

rokers

toolin

g is c

reate

d a

s E

clip

se p

lug-ins, so if you’re a

lready u

sin

g o

ther

pro

ducts

that uses

Eclip

se they w

ill a

ll share

the s

am

e e

nvironm

ent. M

ore

than this

, re

sourc

es c

an b

e s

hare

d b

etw

een

plu

g-ins, so the fact th

at th

e W

ebS

phere

Bro

kers

Message S

et editor

is b

ased o

n X

ML s

chem

a

means it can b

e s

hare

d b

etw

een a

ny X

ML s

chem

a a

ware

Eclip

se p

lug-in.

The toolin

g is b

ased o

n

Rational A

pplic

ation D

evelo

per.

Page 47: WebSphere Message Broker 101: The Swiss army knife for ... · WebSphere Message Broker 101: The Swiss army knife for application integration David Coles – WebSphere Message Broker

•B

roker

runtim

e.

•E

xecution g

roups a

re c

onta

iner

pro

cesses w

hic

h a

llow

s m

essage f

low

s to b

e

separa

ted for

isola

tion a

nd s

cala

bili

ty.

Insid

e a

n e

xecution g

roup, th

e flo

w is a

runtim

e

insta

ntiation (

code!)

of th

e m

odel deplo

yed f

rom

the M

essage B

roker

Toolk

it. It u

ses the

WebS

phere

Message B

roker

runtim

e lib

raries a

nd n

ode lib

raries to

perf

orm

the n

ode o

pera

tions

defined a

nd d

eplo

yed.

•E

ach m

essage flo

w h

as a

pool of th

reads in a

n e

xecution g

roup p

rocess. M

essage f

low

input

nodes h

ave a thre

ad a

ssig

ned fro

m the p

ool and a

dditio

nal th

reads m

ove to a

nd fro

m the p

ool

as the m

essage a

rriv

al ra

te r

ises a

nd falls

. It is p

ossib

le to c

onfigure

som

e input nodes to u

se

their o

wn a

dditio

nal pool of th

reads.

•M

essage S

ets

are

typic

ally

sto

red in a

data

base a

nd insta

ntiate

dw

ith the first m

essage,

accord

ing to the p

ars

er’s d

esig

n.

•T

he b

roker

runtim

e r

uns o

n m

any d

iffe

rent pla

tform

s, and r

equires a

sin

gle

, lo

cal M

Q q

ueue

manager.

This

is u

sed for

inte

rnal com

munic

ation a

nd c

om

munic

ation w

ith the b

roker.

•B

roker

Explo

rer

•T

his

tool is

based o

n the W

ebS

phere

MQ

Explo

rer

and a

llow

s a

dm

inis

trato

rs to m

anage q

ueue

managers

and b

rokers

fro

m the s

am

e p

ers

pective, and a

lso v

iew

Bro

ker

perf

orm

ance

info

rmation, off

load W

S-S

ecurity

onto

Data

Pow

er

applia

nces, and m

ore

.

•F

or

info

rmation o

n a

ll th

e c

om

ponents

insid

e W

ebS

phere

Message B

roker,

see the c

om

ponent

overv

iew

docum

enta

tion h

ere

: http://p

ublib

.bould

er.

ibm

.com

/info

cente

r/w

mbhelp

/v7r0

m0/topic

/com

.ibm

.eto

ols

.mft.d

oc/a

b20551_.h

tm

Page 48: WebSphere Message Broker 101: The Swiss army knife for ... · WebSphere Message Broker 101: The Swiss army knife for application integration David Coles – WebSphere Message Broker

Develo

pm

ent

Test

QA

Pro

ductio

n

Su

pp

ort

fo

r A

ll U

se

r R

ole

s a

nd

E

nv

iro

nm

en

ts

•A

pplic

ation D

evelo

per

•D

evelo

ps m

essage f

low

s,

message m

od

els

etc

.

•U

nit T

ests

on local m

ach

ine

•C

reate

s B

roker

Arc

hiv

e (

BA

R)

file

s c

onta

inin

g r

equire

d

art

efa

cts

•A

dm

inis

tra

tor

•C

usto

miz

es B

AR

for

targ

et

enviro

nm

ent

(message f

low

pro

pert

ies inclu

din

g q

ueu

es,

data

base n

am

es e

tc.)

•D

eplo

ys B

AR

to t

arg

et

bro

ker

•B

roker

mana

gem

ent

and

opera

tiona

l co

ntr

ol

•M

onitori

ng

Page 49: WebSphere Message Broker 101: The Swiss army knife for ... · WebSphere Message Broker 101: The Swiss army knife for application integration David Coles – WebSphere Message Broker

•W

ebS

phere

Message B

roker

recogniz

es tw

o t

ypic

al user

role

s:

•T

he A

pplic

ation D

evelo

per

–re

sponsib

le for

develo

pin

g m

essage f

low

s a

nd r

ela

ted a

rtefa

cts

•T

he B

roker

Adm

inis

trato

r –

responsib

le for

insta

llation, configura

tion a

nd m

ain

tenance o

f bro

ker

dom

ain

s.

•T

ypic

ally

the A

pplic

ation D

evelo

per

will

not be a

ware

of th

e e

nvironm

ent to

whic

h m

essage flo

ws w

ill

be d

eplo

yed; th

is is the r

esponsib

ility

of th

e b

roker

adm

inis

trato

r. S

imila

rly, th

e b

roker

adm

inis

trato

r m

ay n

ot be a

ware

of th

e e

xact

message flo

w logic

supplie

d b

y t

he

applic

ation d

evelo

per.

WebS

phere

M

essage B

roker

pro

vid

es tools

and techniq

ues to e

nable

Message B

roker

“applic

ations”

to e

asily

flow

betw

een the a

pplic

ation d

evelo

per

and a

dm

inis

trato

r.

•A

dditio

nally

, ente

rprises u

sin

g M

essage B

roker

tend to h

ave s

evera

l dis

tinct environm

ents

of bro

kers

th

at re

pre

sent th

e d

evelo

pm

ent lif

ecycle

of a M

essage B

roker

solu

tion.

•D

evelo

pm

ent: D

evelo

pers

of m

essage flo

ws a

nd r

ela

ted a

rtefa

cts

will

tend to h

ave a

develo

pm

ent or

Unit T

est environm

ent on their o

wn s

yste

m.

•T

est: U

sually

on a

syste

m o

r set of syste

ms r

em

ote

to the d

evelo

pers

, te

st dom

ain

s a

re u

sed for

functional verification o

r syste

m testing o

f bro

ker

message flo

ws.

•Q

A: U

sually

a m

irro

r of th

e P

roduction d

om

ain

, used for

final te

sting o

f m

essage b

rokers

befo

re they

are

pro

mote

d.

•P

roduction: T

he “

live”

Message B

roker

syste

m that is

pro

vid

ing v

alu

e to the b

usin

ess.

Page 50: WebSphere Message Broker 101: The Swiss army knife for ... · WebSphere Message Broker 101: The Swiss army knife for application integration David Coles – WebSphere Message Broker

Mo

vin

g B

atc

h In

to O

nlin

e

WM

B

Mak

ing

an

Ap

plicati

on

Inven

tory

an

d G

overn

ing

Pro

cessin

g

WM

B

WS

RR

Mak

ing

th

e M

ost

of

Packag

ed

Ap

plicati

on

s

WM

B

Part

icip

ati

ng

in

a S

ecu

re

Infr

astr

uctu

re

WM

B LD

APTF

IM

Exte

nd

ing

th

e r

each

of

exis

tin

g a

pp

licati

on

s

WM

B

Bu

sin

ess M

on

ito

rin

g

WM

B

Ke

y U

sa

ge

Sc

en

ari

os

Page 51: WebSphere Message Broker 101: The Swiss army knife for ... · WebSphere Message Broker 101: The Swiss army knife for application integration David Coles – WebSphere Message Broker

•K

ey u

sage s

cenarios

Page 52: WebSphere Message Broker 101: The Swiss army knife for ... · WebSphere Message Broker 101: The Swiss army knife for application integration David Coles – WebSphere Message Broker

•U

sage S

cenario 1

: E

xte

ndin

g the R

each o

f E

xis

ting A

pplic

ations

•M

Q e

nable

all

your

applic

ations!

•M

any e

nte

rprises h

ave r

ealiz

ed the a

dvanta

ges o

f M

Q technolo

gy:

Robust, tra

nsactional,

relia

ble

, hig

h-p

erf

orm

ance m

essagin

g

•M

essage B

roker

allo

ws y

ou to u

se M

Q technolo

gy t

o the fulle

st exte

nt. M

essage B

roker

has a

n

incre

dib

ly b

road r

ange o

f connectivity m

echanis

ms, and a

ny a

pplic

ation c

an e

asily

connect to

the

MQ

infr

astr

uctu

re inbound o

r outb

ound.

•F

or

exam

ple

, tr

ansfo

rm T

CP

/IP

based a

pplic

ation to g

enera

te r

egula

r M

Q m

essages. O

r exis

ting

MQ

based a

pplic

ations c

an c

onnect to

oth

er

applic

ations u

sin

g M

Q.

Page 53: WebSphere Message Broker 101: The Swiss army knife for ... · WebSphere Message Broker 101: The Swiss army knife for application integration David Coles – WebSphere Message Broker

•U

sage S

cenario 1

: E

xte

ndin

g the R

each o

f E

xis

ting A

pplic

ations (

cont)

•P

rovid

e a

nd C

onsum

e W

eb S

erv

ices!

•W

eb s

erv

ices a

re n

ow

esta

blis

hed a

s a

n inte

ropera

bili

ty s

tandard

. T

hey a

re v

itally

im

port

ant fr

om

a b

usin

ess to b

usin

ess c

onnectivity p

ers

pective, and it is

now

possib

le for

busin

esses to

consum

e e

ach o

thers

serv

ices u

sin

g these w

ell

defined s

tandard

s.W

eb s

erv

ices a

llow

inte

rnal

sta

ndard

ization b

etw

een d

iffe

rent part

s o

f th

e s

am

e o

rganiz

ation

•H

ow

ever,

the a

doption o

f W

eb S

erv

ices b

y m

any s

ubsyste

ms is N

OT

univ

ers

al. M

essage B

roker

can b

e u

sed a

univ

ers

al tr

ansla

tor

to c

onvert

betw

een w

eb s

erv

ice a

nd e

xis

ting form

ats

and

pro

tocols

. T

his

allo

ws y

our

exis

ting a

pplic

ations to b

e e

xposed a

s w

eb s

erv

ice, and e

xis

ting

applic

ations c

an c

onsum

e w

eb s

erv

ices w

ithout change. D

evelo

pers

can u

se w

eb s

erv

ices

without new

develo

pm

ent skill

s o

r pla

tform

know

ledge.

Page 54: WebSphere Message Broker 101: The Swiss army knife for ... · WebSphere Message Broker 101: The Swiss army knife for application integration David Coles – WebSphere Message Broker

•U

sage S

cenario 2

: C

om

bin

ing F

ile-b

ased a

nd O

nlin

e P

rocessin

g

•G

et firs

t cla

ss d

ata

fro

m y

our

file

s!

•F

iles e

xchange b

etw

een a

pplic

ations s

till

popula

r and e

ffective.It

’s a

fle

xib

le m

eth

od o

f exchange:

Neither

ente

rprise h

as to m

andate

technolo

gy. T

here

are

legitim

ate

reasons for

usin

g

file

s to e

xchange info

rmation, and these u

sually

rela

te to the w

ay b

usin

esses r

un o

r physic

al

pro

cesses o

ccur.

•F

or

exam

ple

, a c

arg

o s

hip

has thousands o

f conta

iners

each w

ith h

undre

ds o

f pale

ttes, and file

s

can r

educe u

nit tra

nsaction c

osts

by a

ggre

gating n

um

ero

us c

lients

requests

.

•M

essage B

roker’s file

pro

cessin

g a

llow

s c

lients

to g

et file

/batc

h w

ork

onlin

e, easily

. F

lat-

file

nodes c

an h

andle

huge file

s (

e.g

. gig

abyte

s)

without sto

rage g

row

th (

inclu

din

g F

TP

). T

here

are

als

o z

/OS

specific

VS

AM

file

nodes (

Input, R

ead, W

rite

, U

pdate

, D

ele

te).

Page 55: WebSphere Message Broker 101: The Swiss army knife for ... · WebSphere Message Broker 101: The Swiss army knife for application integration David Coles – WebSphere Message Broker

Monitor

Analy

ze

•U

sage S

cenario 3

: B

usin

ess A

ctivity M

onitoring

•U

nders

tand the im

port

ance o

f E

SB

data

!

•M

essage B

roker

allo

ws e

mis

sio

n a

nd p

rocessin

g o

f events

fro

m m

any s

ourc

es a

nd targ

ets

. F

or

exam

ple

, th

e c

aptu

re b

usin

ess r

ele

vant in

form

ation (

such a

s tota

l dolla

r tr

ade v

alu

e p

er

day,

or

tota

l num

ber

of ord

ers

per

hour)

to feed to W

ebS

phere

Busin

ess M

onitor.

•M

essage B

roker

can g

enera

te m

onitoring e

vents

fro

m m

essage f

low

s. T

his

enable

s inte

gra

tion

with W

ebS

phere

Monitor

and M

odelle

r to

monitor

and a

naly

ze K

PIs

. It

’s a

non-invasiv

e s

olu

tion,

meanin

g that th

e a

dm

inis

trato

r can o

pera

tionally

activate

events

on n

ew

and e

xis

ting m

essage

flow

s.

•E

vent

em

issio

n o

ccurs

thro

ugh s

tandard

MQ

publis

h/s

ubscribe, m

eanin

g that any a

pplic

ations

can c

onsum

e the e

vent, local or

rem

ote

. T

here

can a

lso B

usin

ess M

onitor

can b

e local or

rem

ote

, and there

can m

ultip

le, concurr

ent

liste

ners

to e

vents

.

Page 56: WebSphere Message Broker 101: The Swiss army knife for ... · WebSphere Message Broker 101: The Swiss army knife for application integration David Coles – WebSphere Message Broker

•U

sage S

cenario 4

: M

ake a

n A

pplic

ation Invento

ry a

nd G

et V

alu

e F

rom

It

•U

nders

tand y

our

applic

ation a

ssets

and c

ontr

ol th

eir a

ccess d

ynam

ically

!

•A

gre

at firs

t ste

p to S

OA

is to c

ata

log

applic

ation a

nd s

erv

ice a

ssets

in a

regis

try, such a

s

WS

RR

.

•C

lassify y

our

serv

ices b

y function, ow

nin

g d

epart

ment or

som

e o

ther

metr

ic. B

uild

rela

tionship

s

betw

een s

erv

ices for

lifecycle

managem

ent and v

ers

ionin

g. S

tore

meta

data

for

serv

ices, such a

s

user-

qualif

ied p

ropert

ies (

for

exam

ple

, U

serC

lass=

GO

LD

or

UserC

lass=

SIL

VE

R).

•Y

ou c

an u

se W

SR

R r

egis

try info

rmation fro

m w

ithin

Message B

roker.

There

are

built

-in n

odes

that allo

w m

essage f

low

s to a

ccess the r

egis

try.

Prim

ary

use c

ases a

re g

overn

ance (

who c

an

access w

hic

h a

pplic

ations a

nd s

erv

ices),

and d

ynam

icity (

update

regis

try t

o c

hange c

onnectivity

behavio

ur)

. T

he n

odes u

se a

n in-m

em

ory

cache for

hig

h p

erf

orm

ance, w

hic

h a

lso inclu

des c

ache

invalid

ation o

ptions.

•A

lso c

heck o

ut th

e M

Q s

erv

ice d

efinitio

n to d

escribe M

Q a

pplic

ations a

s s

erv

ices a

nd s

tore

them

. A

ccess these in M

essage B

roker

usin

g the R

egis

tryLookup

node.

Page 57: WebSphere Message Broker 101: The Swiss army knife for ... · WebSphere Message Broker 101: The Swiss army knife for application integration David Coles – WebSphere Message Broker

•U

sage S

cenario 5

: N

ew

Work

To a

nd F

rom

Packaged A

pplic

ations

•M

ove info

rmation to a

nd fro

m p

ackaged a

pplic

ations!

•P

ackaged a

pplic

ations p

lay a

vital ro

le in m

any b

usin

esses: S

AP

for

purc

hasin

g, sale

s,

invento

ry, S

IEB

EL for

sale

s a

nd P

eople

Soft for

HR

.

•In

terf

aces a

re o

ften n

on s

tandard

: e.g

. S

AP

BA

PIs

, ID

OC

s.

Consequently, pro

cessin

g a

nd d

ata

are

isola

ted fro

m o

ther

applic

ations, w

hic

h m

eans that packaged a

pplic

ations h

ave d

ifficultly

usin

g a

nd g

enera

ting info

rmation for

oth

er

applic

ations. T

his

inhib

its a

doption o

f a b

est of bre

ed

philo

sophy.

•M

essage B

roker

has b

uilt

-in n

odes s

upport

for

SA

P, S

EB

L,

People

Soft, in

bound a

nd o

utb

ound.

This

allo

ws y

ou to d

rive n

ew

work

into

its

packaged a

pplic

ation fro

m a

ny o

ther

MB

connection.

You c

an s

end info

rmation fro

m p

ackaged a

pplic

ation to a

ny o

ther

MB

connection.

•T

his

means that packaged a

pplic

ations c

an focus o

n w

hat th

ey d

o b

est and b

e inte

gra

ted.

Page 58: WebSphere Message Broker 101: The Swiss army knife for ... · WebSphere Message Broker 101: The Swiss army knife for application integration David Coles – WebSphere Message Broker

•U

sage S

cenario 6

: P

art

icip

ate

in a

Secure

Infr

astr

uctu

re

•S

ecure

applic

ations w

ith identity

, auth

entication a

nd a

uth

orization

!

•A

pplic

ation c

onnectivity s

cenarios im

ply

security

dom

ain

changes. Id

entity

managem

ent,

auth

orization, and a

uth

entication a

re m

echanis

ms e

ssential to

pro

vid

ing p

roper

part

icip

ation in a

secure

infr

astr

uctu

re.

•M

essage B

roker

can p

erf

orm

a k

ey r

ole

as a

Polic

y E

nfo

rcem

ent

Poin

t (P

EP

), c

olla

bora

ting w

ith

usin

g P

olic

y D

ecis

ion P

oin

t (P

DP

) such a

s a

n L

DA

P o

r T

ivoli

Federa

ted Identity

Manager

(TF

IM)

serv

er.

Page 59: WebSphere Message Broker 101: The Swiss army knife for ... · WebSphere Message Broker 101: The Swiss army knife for application integration David Coles – WebSphere Message Broker

De

mo

Page 60: WebSphere Message Broker 101: The Swiss army knife for ... · WebSphere Message Broker 101: The Swiss army knife for application integration David Coles – WebSphere Message Broker

•T

his

slid

e s

how

s t

he w

elc

om

e s

cre

en that

is s

how

n w

hen

you

sta

rtth

e M

essage B

roker

Toolk

it for

the

fir

st tim

e.

•It is the

sta

rtin

g p

oin

t fo

r th

e d

em

o…

assum

ing w

e h

ave tim

e!

Page 61: WebSphere Message Broker 101: The Swiss army knife for ... · WebSphere Message Broker 101: The Swiss army knife for application integration David Coles – WebSphere Message Broker

We

bS

ph

ere

Me

ss

ag

e B

rok

er

•U

niv

ers

al C

onnectivity

•S

imp

lify a

pp

lication

co

nn

ectivity t

o p

rovid

e a

fle

xib

le a

nd

dyn

am

ic infr

astr

uctu

re

•R

oute

s a

nd \

transfo

rms m

essages F

RO

M a

nyw

he

re,

TO

an

yw

he

re•

Su

pp

ort

s a

wid

e r

an

ge

of p

roto

co

ls•

MQ

, JM

S 1

.1,

HT

TP

(S),

Web

Se

rvic

es,

File

, E

IS (

SA

P,S

IEB

EL

…),

TC

P/I

P,

Use

r D

efined

•S

up

po

rts a

bro

ad

ra

ng

e o

f da

ta fo

rma

ts•

Bin

ary

(C

/CO

BO

L),

XM

L,

Ind

ustr

y (

SW

IFT

, E

DI,

HIP

AA

…),

Use

r D

efin

ed

•In

tera

ction

s a

nd O

pe

ratio

ns

•R

ou

te,

Filt

er,

Tra

nsfo

rm,

En

rich

, M

on

ito

r, D

istr

ibu

te,

De

com

po

se

, C

orr

ela

te,

De

tect…

•S

imple

pro

gra

mm

ing

•P

att

ern

s b

ase

d fo

r to

p-d

ow

n,

pa

ram

ete

rize

d c

on

nectivity o

f co

mm

on u

se c

ases

•W

eb S

erv

ice

fa

çad

es, m

essa

ge

orien

ted

pro

ce

ssin

g,

que

ue

to

file

•C

on

str

uctio

n b

ased

fo

r b

otto

m-u

p a

sse

mb

ly o

f be

spo

ke

co

nn

ectivity lo

gic

•M

essa

ge

flo

ws t

o d

escrib

e a

pp

lica

tion

conn

ectivity c

om

prisin

g…

•M

essa

ge

node

s w

hic

h e

ncap

su

late

re

quired

in

tegra

tio

n lo

gic

wh

ich

op

era

te o

n…

•M

essa

ge

tre

e w

hic

h d

escribe

s the

da

ta in

a fo

rma

t in

depen

den

t m

ann

er

•T

ran

sfo

rmatio

n o

ptio

ns inclu

de g

raph

ica

l m

ap

pin

g,

PH

P,

Ja

va

, E

SQ

L, X

SL

an

d W

TX

•O

pe

rational M

anagem

ent and

Perf

orm

ance

•E

xte

nsiv

e A

dm

inis

tratio

n a

nd S

yste

ms M

an

ag

em

ent fa

cili

ties fo

r d

eve

lop

ed

so

lutio

ns

•W

ide

ra

ng

e o

f o

pera

tin

g s

yste

m a

nd

ha

rdw

are

pla

tform

s s

up

port

ed

•O

ffe

rs p

erf

orm

ance

of tr

ad

itio

na

l tr

an

sa

ctio

n p

rocessin

g e

nvir

on

me

nts

Page 62: WebSphere Message Broker 101: The Swiss army knife for ... · WebSphere Message Broker 101: The Swiss army knife for application integration David Coles – WebSphere Message Broker

•T

his

is a

sin

gle

slid

e that describes w

hat

WebS

phere

Message B

roker

is a

nd the

main

concepts

that ha

ve b

een intr

oduced.

•I hope y

ou h

ave e

njo

yed t

his

technic

al in

troduction to W

ebS

phe

reM

essage B

roker.

Page 63: WebSphere Message Broker 101: The Swiss army knife for ... · WebSphere Message Broker 101: The Swiss army knife for application integration David Coles – WebSphere Message Broker

Co

pyri

gh

t a

nd

Tra

de

ma

rks

©IB

M C

orp

ora

tio

n 2

011. A

ll r

igh

ts r

eserv

ed

. IB

M, th

e IB

M lo

go

, ib

m.c

om

an

d t

he g

lob

e d

esig

n a

re t

rad

em

ark

s o

f In

tern

ati

on

al

Bu

sin

ess M

ach

ines C

orp

ora

tio

n, re

gis

tere

d in

man

y ju

risd

icti

on

s

wo

rld

wid

e. A

cu

rren

t list

of

IBM

tra

dem

ark

s is a

vailab

le o

n t

he

Web

at

"Co

pyri

gh

t an

d t

rad

em

ark

in

form

ati

on

" at

ww

w.ib

m.c

om

/leg

al/co

pytr

ad

e.s

htm

l. O

ther

co

mp

an

y, p

rod

uct,

or

serv

ice n

am

es m

ay b

e t

rad

em

ark

s o

r serv

ice m

ark

s o

f o

thers

.