55
David Coles – WebSphere Message Broker Level 3 Service, IBM Hursley – [email protected] Wednesday 2 nd March 2011 WebSphere Message Broker Patterns

WebSphere Message Broker - SHARE · David Coles – WebSphere Message Broker Level 3 Servi ce, IBM Hursley – [email protected] Wednesday 2 nd WebSphere Message Broker March 2011

Embed Size (px)

Citation preview

Page 1: WebSphere Message Broker - SHARE · David Coles – WebSphere Message Broker Level 3 Servi ce, IBM Hursley – dcoles@uk.ibm.com Wednesday 2 nd WebSphere Message Broker March 2011

David

Cole

s –

WebS

phere

Message B

roker

Level 3 S

erv

ice,

IBM

Hurs

ley

–dcole

s@

uk.ibm

.com

Wednesday 2

nd

Marc

h 2

011

Web

Sp

here

Messag

e B

roker

Patt

ern

s

Page 2: WebSphere Message Broker - SHARE · David Coles – WebSphere Message Broker Level 3 Servi ce, IBM Hursley – dcoles@uk.ibm.com Wednesday 2 nd WebSphere Message Broker March 2011

2Ag

en

da

•O

verv

iew

•P

attern

s

•B

roker

Navig

ato

r

•P

attern

s E

xplo

rer

•P

attern

Para

me

ters

•G

ene

ration

•D

eplo

ym

ent

•B

uilt

-in P

attern

s

•P

attern

Auth

oring

•P

rincip

les a

nd W

ork

flow

•D

esig

n W

alk

-Thro

ugh

•E

xpre

ssio

ns

•E

nable

ment

•E

num

era

ted

Typ

es

•P

attern

Com

munitie

s

Page 3: WebSphere Message Broker - SHARE · David Coles – WebSphere Message Broker Level 3 Servi ce, IBM Hursley – dcoles@uk.ibm.com Wednesday 2 nd WebSphere Message Broker March 2011

3

�U

niv

ers

al C

on

nectivity

–S

implif

y a

pplic

ation c

onnectivity t

o p

rovid

e a

fle

xib

le a

nd d

ynam

ic infr

astr

uctu

re–

Route

s a

nd t

ransfo

rms m

essages f

rom

an

yw

here

, to

an

yw

he

re–

Support

s a

wid

e r

ange o

f p

roto

cols

•M

Q, JM

S 1

.1,

HT

TP

(S),

Web S

erv

ices (

SO

AP

, R

ES

T),

file

, E

RP

(S

AP

,S

EB

L…

), T

CP

/IP

–S

upport

s a

bro

ad

range

of

data

fo

rmats

•B

inary

(C

/CO

BO

L),

XM

L, C

SV

, In

dustr

y (

SW

IFT

, E

DI, H

L7…

), I

DO

Cs, user

defined

�In

tera

ctions a

nd O

pera

tions

–R

oute

, filter,

tra

nsfo

rm, en

rich, m

onitor,

dis

trib

ute

, decom

pose, corr

ela

te, de

tect…

�S

imple

pro

gra

mm

ing

–P

attern

s b

ased f

or

top-d

ow

n, pa

ram

ete

rized c

onnectivity o

f com

mon u

se c

ases

•W

eb S

erv

ice façades, m

essage o

riente

d p

rocessin

g, queue to file

–C

onstr

uction b

ased fo

r bo

ttom

-up

assem

bly

of

bespoke c

onnectivity logic

•M

essage flo

ws to d

escribe a

pplic

ation c

onnectivity c

om

prisin

g…

•M

essage n

odes w

hic

h e

ncapsula

te r

equired inte

gra

tion logic

whic

hopera

te o

n…

•M

essage tre

e w

hic

h d

escribes the d

ata

in a

form

at in

dependent m

anner

•T

ransfo

rmation o

ptions inclu

de g

raphic

al m

appin

g, P

HP

, Java,

ES

QL, X

SL a

nd W

TX

�O

pera

tion

al M

anag

em

ent

an

d P

erf

orm

ance

–E

xte

nsiv

e a

dm

inis

tration a

nd s

yste

ms m

anagem

ent fa

cili

ties for

de

velo

ped s

olu

tions

–W

ide r

ange o

f op

era

ting s

yste

m a

nd h

ard

wa

re p

latf

orm

s s

upport

ed

–O

ffe

rs p

erf

orm

an

ce o

f tr

aditio

nal tr

ansaction p

rocessin

g e

nvironm

ents

Ov

erv

iew

Page 4: WebSphere Message Broker - SHARE · David Coles – WebSphere Message Broker Level 3 Servi ce, IBM Hursley – dcoles@uk.ibm.com Wednesday 2 nd WebSphere Message Broker March 2011

4Th

e C

ha

lle

ng

e

Fro

m:

MQ

File

WS

DL

To:

Page 5: WebSphere Message Broker - SHARE · David Coles – WebSphere Message Broker Level 3 Servi ce, IBM Hursley – dcoles@uk.ibm.com Wednesday 2 nd WebSphere Message Broker March 2011

5To

p-d

ow

n v

sB

ott

om

-up

De

ve

lop

me

nt

MQ

File

WS

DL

Page 6: WebSphere Message Broker - SHARE · David Coles – WebSphere Message Broker Level 3 Servi ce, IBM Hursley – dcoles@uk.ibm.com Wednesday 2 nd WebSphere Message Broker March 2011

6Pa

tte

rns

fo

r S

imp

lifi

ed

De

ve

lop

me

nt

�C

reate

s top-d

ow

n, para

mete

rized c

onnectivity s

olu

tions

–W

eb S

erv

ice f

açades,

messag

e o

riente

d p

rocessin

g,

qu

eue-t

o-f

ile

�R

educes c

om

mon p

roble

ms in flo

w d

evelo

pm

ent

�C

om

munic

ate

s b

est pra

ctices to the B

roker

com

munity

�C

om

ple

ments

exis

ting b

ottom

-up c

onstr

uction for

bespoke c

onnectivity

�R

educes tim

e-t

o-v

alu

e for

solu

tion d

evelo

pm

ent

�P

attern

s a

re a

first cla

ss c

itiz

en in M

essage B

roker

–P

att

ern

s h

ave b

ubb

led r

ight

to t

he t

op in t

he

navig

ato

r vie

w!

Page 7: WebSphere Message Broker - SHARE · David Coles – WebSphere Message Broker Level 3 Servi ce, IBM Hursley – dcoles@uk.ibm.com Wednesday 2 nd WebSphere Message Broker March 2011

7

Pattern

s

Page 8: WebSphere Message Broker - SHARE · David Coles – WebSphere Message Broker Level 3 Servi ce, IBM Hursley – dcoles@uk.ibm.com Wednesday 2 nd WebSphere Message Broker March 2011

8Me

ss

ag

e B

rok

er

Na

vig

ato

r

�U

ser

is d

irecte

d tow

ard

s a

new

entr

y

poin

t fo

r develo

pm

ent

�F

irst cla

ss d

evelo

pm

ent m

echanis

m

�A

ugm

ents

oth

er

sta

rtin

g p

oin

ts:

�W

SD

L, S

CA

, A

dapte

r

�D

oes n

ot re

pla

ce the e

xis

ting b

ottom

up

develo

pm

ent appro

ach

�S

till

com

ple

tely

valid

to s

tart

fro

m flo

ws,

message s

ets

etc

!

Page 9: WebSphere Message Broker - SHARE · David Coles – WebSphere Message Broker Level 3 Servi ce, IBM Hursley – dcoles@uk.ibm.com Wednesday 2 nd WebSphere Message Broker March 2011

9Pa

tte

rns

Ex

plo

rer

�P

attern

s E

xplo

rer

�P

re-s

upplie

d IB

M p

attern

s

�P

attern

cate

gories

�G

roups s

imila

r solu

tions togeth

er

�M

essage-b

ased inte

gra

tion,

serv

ice e

nable

ment, s

erv

ice

virtu

aliz

ation…

�H

igh level help

is a

vaila

ble

�D

escribes a

cla

ss o

f solu

tions

�Leaf nodes a

re the p

attern

s

Page 10: WebSphere Message Broker - SHARE · David Coles – WebSphere Message Broker Level 3 Servi ce, IBM Hursley – dcoles@uk.ibm.com Wednesday 2 nd WebSphere Message Broker March 2011

10Pa

tte

rn P

ara

me

ters

�C

usto

miz

e a

patt

ern

usin

g p

att

ern

para

mete

rs

�In

sta

nce n

am

e id

entifies p

attern

; duplic

ate

nam

es w

ill o

ptionally

be o

verw

ritten

�P

ara

mete

rs a

re logic

ally

gro

uped into

sections

�M

andato

ry p

ara

mete

rs a

re indic

ate

d v

ia *

, m

issin

g p

ara

mete

rs a

rein

dic

ate

d v

ia x

�F

ield

s a

re w

ate

rmark

ed a

nd

pre

-popula

ted, fo

r e

xam

ple

: availa

ble

message s

ets

�D

eta

iled h

elp

is a

vaila

ble

for

each p

atte

rn p

ara

me

ter

�C

lick the G

en

era

tebu

tton

to

cre

ate

the g

ene

rate

d a

rte

facts

: m

essage flo

ws,

scripts

Page 11: WebSphere Message Broker - SHARE · David Coles – WebSphere Message Broker Level 3 Servi ce, IBM Hursley – dcoles@uk.ibm.com Wednesday 2 nd WebSphere Message Broker March 2011

11G

en

era

tio

n

�A

work

ing s

et is

cre

ate

d, it inclu

des o

nly

the c

urr

ent pattern

�T

he P

roje

cts

vie

w c

onta

ins the g

enera

ted p

roje

cts

�T

he P

att

ern

s In

sta

nces v

iew

conta

ins the p

attern

insta

nce p

roje

cts

�In

clu

des t

he c

onfigura

tion X

ML a

nd s

um

mary

pa

ge

�P

attern

s d

oes n

ot attem

pt to

pro

vid

e life c

ycle

managem

ent!

Page 12: WebSphere Message Broker - SHARE · David Coles – WebSphere Message Broker Level 3 Servi ce, IBM Hursley – dcoles@uk.ibm.com Wednesday 2 nd WebSphere Message Broker March 2011

12De

plo

ym

en

t

�N

oth

ing c

hanges fro

m r

egula

r build

and d

eplo

y a

ctivitie

s

�B

uild

BA

R f

ile a

s u

sual fr

om

genera

ted a

ssets

�D

eplo

y a

s u

su

al, t

hro

ugh M

BX

or

the t

oolk

it

�P

attern

insta

nce m

ay c

reate

additio

nal ru

ntim

e c

ontr

ols

�F

or

exam

ple

, a

UD

P t

o c

ontr

ol err

or

logg

ing/t

race

�T

hese c

an b

e c

usto

miz

ed a

s n

orm

al

Page 13: WebSphere Message Broker - SHARE · David Coles – WebSphere Message Broker Level 3 Servi ce, IBM Hursley – dcoles@uk.ibm.com Wednesday 2 nd WebSphere Message Broker March 2011

13Bu

ilt-

In P

att

ern

s

•M

essage B

roker

pro

vid

es a

core

set of built

-in p

attern

s

•T

hese im

ple

ment a v

ariety

of com

mon s

cenarios

•W

eb s

erv

ice fro

nt end t

o a

MQ

ba

sed a

pplic

ation

•P

rocessin

g d

ata

sto

red in a

file

and r

ou

ting to o

ne

or

more

queues

•A

ddin

g a

pro

xy in f

ront

of

a w

eb s

erv

ice p

rovid

er

•P

rocessin

g d

ata

fro

m a

n S

AP

syste

m a

nd

routing t

o M

Q

•S

hre

ddin

g m

essages a

nd r

ou

ting to o

ne

or

more

queues

•P

attern

s a

re s

ele

cte

d b

ased o

n c

lient fe

edback a

nd fie

ld e

xperience

•T

his

core

set of pattern

s c

ontinues to g

row

with e

ach r

ele

ase

•M

Q t

o w

eb s

erv

ice p

atte

rn a

dded

in M

essage B

roker

FP

1

Page 14: WebSphere Message Broker - SHARE · David Coles – WebSphere Message Broker Level 3 Servi ce, IBM Hursley – dcoles@uk.ibm.com Wednesday 2 nd WebSphere Message Broker March 2011

14

Pattern

Auth

oring

Page 15: WebSphere Message Broker - SHARE · David Coles – WebSphere Message Broker Level 3 Servi ce, IBM Hursley – dcoles@uk.ibm.com Wednesday 2 nd WebSphere Message Broker March 2011

15Pri

nc

iple

s (

Pa

rt I

)

•P

attern

s a

nd p

attern

auth

oring a

re first cla

ss c

oncepts

•P

attern

auth

oring is a

desig

n a

ctivity

•It m

ay b

e long liv

ed

•It is o

ften n

ot seq

uential

•U

sin

g p

attern

s is a

top-d

ow

n a

ctivity d

riven b

y a

requirem

ent, b

ut:

•A

uth

oring a

n e

xe

mpla

r is

(ty

pic

ally

) a

bott

om

-up a

ctivity

•S

o p

atte

rn a

uth

oring m

ust b

ridge t

hese t

wo d

iffe

rent app

roaches

•P

attern

s h

ave their o

wn d

evelo

pm

ent cycle

•W

e a

lways s

tart

with a

work

ing e

xem

pla

r -

one o

r m

ore

Bro

ker

pro

jects

•C

reating the e

xem

pla

r is

part

of th

e p

attern

auth

oring p

rocess

Page 16: WebSphere Message Broker - SHARE · David Coles – WebSphere Message Broker Level 3 Servi ce, IBM Hursley – dcoles@uk.ibm.com Wednesday 2 nd WebSphere Message Broker March 2011

16Pri

nc

iple

s (

Pa

rt I

I)

•T

he B

roker

imple

menta

tion o

f pattern

auth

oring is a

Toolk

it e

xperience

•P

attern

auth

oring is a

managed u

ser

experience -

a u

ser

should

not need

to u

nders

tand B

roker

inte

rnals

, or

oth

er

imple

menta

tion technolo

gie

s

•A

pattern

encapsula

tes o

ne o

r m

ore

exem

pla

r pro

jects

and a

set of

configura

tion that:

•Looks d

ow

n into

the e

xem

pla

r p

roje

cts

to s

ele

ct ta

rget p

ropert

ies

•Looks u

p to t

he u

ser

inte

rface th

at

will

be p

resente

d to t

he p

atte

rn u

ser

•P

rovid

e g

uid

ance s

o that a p

attern

auth

or

can c

reate

exem

pla

rs r

eady for

pattern

auth

oring

Page 17: WebSphere Message Broker - SHARE · David Coles – WebSphere Message Broker Level 3 Servi ce, IBM Hursley – dcoles@uk.ibm.com Wednesday 2 nd WebSphere Message Broker March 2011

17

Work

flow

Page 18: WebSphere Message Broker - SHARE · David Coles – WebSphere Message Broker Level 3 Servi ce, IBM Hursley – dcoles@uk.ibm.com Wednesday 2 nd WebSphere Message Broker March 2011

18W

ork

flo

w

Page 19: WebSphere Message Broker - SHARE · David Coles – WebSphere Message Broker Level 3 Servi ce, IBM Hursley – dcoles@uk.ibm.com Wednesday 2 nd WebSphere Message Broker March 2011

19

Desig

n W

alk

Thro

ugh

Page 20: WebSphere Message Broker - SHARE · David Coles – WebSphere Message Broker Level 3 Servi ce, IBM Hursley – dcoles@uk.ibm.com Wednesday 2 nd WebSphere Message Broker March 2011

20De

fin

e t

he

Ta

rge

t P

rop

ert

ies

Page 21: WebSphere Message Broker - SHARE · David Coles – WebSphere Message Broker Level 3 Servi ce, IBM Hursley – dcoles@uk.ibm.com Wednesday 2 nd WebSphere Message Broker March 2011

21De

fin

e t

he

Ta

rge

t P

rop

ert

ies

Page 22: WebSphere Message Broker - SHARE · David Coles – WebSphere Message Broker Level 3 Servi ce, IBM Hursley – dcoles@uk.ibm.com Wednesday 2 nd WebSphere Message Broker March 2011

22De

sig

n P

oin

ts

•P

attern

s a

re c

reate

d in the B

roker

Toolk

it

•P

attern

s a

re d

esig

ned in a

Pattern

Auth

oring p

roje

ct and e

ditor

•V

ariabili

ty is e

xpre

ssed in the T

oolk

it e

ditors

•T

he first

rele

ase s

upport

s p

ropert

y v

ariabili

ty in the

Flo

w E

ditor

•P

ropert

y v

ariabili

ty is b

ased o

n flo

w a

nd

User

De

fined P

ropert

ies (

UD

Ps)

•A

ddin

g v

ariabili

ty in the e

ditors

als

o s

upport

s a

use c

ase w

he

ree

xe

mpla

r p

roje

cts

are

used in m

ultip

le p

atte

rns

Page 23: WebSphere Message Broker - SHARE · David Coles – WebSphere Message Broker Level 3 Servi ce, IBM Hursley – dcoles@uk.ibm.com Wednesday 2 nd WebSphere Message Broker March 2011

23Cre

ate

A P

att

ern

Au

tho

rin

g P

roje

ct

Page 24: WebSphere Message Broker - SHARE · David Coles – WebSphere Message Broker Level 3 Servi ce, IBM Hursley – dcoles@uk.ibm.com Wednesday 2 nd WebSphere Message Broker March 2011

24Cre

ate

A P

att

ern

Au

tho

rin

g P

roje

ct

Page 25: WebSphere Message Broker - SHARE · David Coles – WebSphere Message Broker Level 3 Servi ce, IBM Hursley – dcoles@uk.ibm.com Wednesday 2 nd WebSphere Message Broker March 2011

25De

sig

n P

oin

ts

•A

pattern

can g

enera

te o

ne o

r m

ore

message flo

w p

roje

cts

•A

pattern

can c

onta

in r

efe

rences to p

roje

cts

whic

h the e

nd u

ser

is

expecte

d to h

ave in their w

ork

space

•A

pattern

genera

tes p

roje

cts

that m

atc

h the p

roje

cts

in the e

xem

pla

rs

•P

roje

cts

are

nam

ed follo

win

g p

attern

insta

nce n

am

ing c

onventions. F

or

exa

mple

, if t

he

exem

pla

r p

roje

ct

nam

e is invoicing

and t

he p

att

ern

insta

nce n

am

e is foo

, th

en

the

genera

ted p

roje

ct

will

be c

alle

d foo_invoicing

. T

his

sim

ple

rule

favours

convention

over

configura

tion. T

he

patt

ern

au

thor

can n

am

e th

eir e

xem

pla

r p

roje

cts

accord

ingly

.

•T

he p

attern

auth

or

sele

cts

their e

xem

pla

r pro

jects

when a

new

Pattern

A

uth

oring p

roje

ct is

cre

ate

d•

The P

atte

rn A

uth

oring p

roje

ct m

ain

tain

s r

efe

rences to t

he e

xem

pla

r pro

jects

•T

he

se

refe

ren

ce

s a

re s

tanda

rd E

clip

se

pro

ject

depend

en

cie

s

•T

he e

xe

mpla

r p

roje

ct file

s a

re c

opie

d into

the p

att

ern

plu

g-in w

hen

the p

att

ern

is b

uilt

Page 26: WebSphere Message Broker - SHARE · David Coles – WebSphere Message Broker Level 3 Servi ce, IBM Hursley – dcoles@uk.ibm.com Wednesday 2 nd WebSphere Message Broker March 2011

26Se

lec

t T

he

Fil

es

an

d R

es

ou

rce

s

Page 27: WebSphere Message Broker - SHARE · David Coles – WebSphere Message Broker Level 3 Servi ce, IBM Hursley – dcoles@uk.ibm.com Wednesday 2 nd WebSphere Message Broker March 2011

27Se

lec

t T

he

Fil

es

an

d R

es

ou

rce

s

Page 28: WebSphere Message Broker - SHARE · David Coles – WebSphere Message Broker Level 3 Servi ce, IBM Hursley – dcoles@uk.ibm.com Wednesday 2 nd WebSphere Message Broker March 2011

28De

sig

n P

oin

ts

•A

pattern

auth

or

chooses the file

s to inclu

de fro

m their e

xem

pla

r pro

jects

•T

his

support

s a

use c

ase w

here

a p

atte

rn a

uth

or

ha

s a

lib

rary

pro

ject

that

conta

in m

an

y

re-u

sable

assets

not all

of w

hic

h a

re a

pplic

able

to a

ny g

iven p

atte

rn.

•C

hoosin

g a

file

im

plic

itly

sele

cts

all

targ

et pro

pert

ies in thatfile

•B

y d

efa

ult,

all

file

s in a

n e

xem

pla

r pro

ject are

sele

cte

d

•T

arg

et pro

pert

ies c

an b

e a

dded a

nd r

em

oved in the e

xem

pla

r pro

jects

•T

he P

atte

rn A

uth

oring p

roje

ct can b

e r

efr

eshed t

o p

ick these u

p

•D

ouble

clic

kin

g a

file

opens the e

ditor

•A

uth

oring a

patt

ern

is a

non s

eque

ntial desig

n a

ctivity!

•D

ependin

g o

n the p

roje

ct ty

pe, som

e file

s a

nd d

irecto

ries m

ay n

eed to b

e

exclu

ded (

such a

s the bin

directo

ry in a

Java p

roje

ct)

Page 29: WebSphere Message Broker - SHARE · David Coles – WebSphere Message Broker Level 3 Servi ce, IBM Hursley – dcoles@uk.ibm.com Wednesday 2 nd WebSphere Message Broker March 2011

29De

fin

e T

he

Us

er

Inte

rfa

ce

Page 30: WebSphere Message Broker - SHARE · David Coles – WebSphere Message Broker Level 3 Servi ce, IBM Hursley – dcoles@uk.ibm.com Wednesday 2 nd WebSphere Message Broker March 2011

30Co

nfi

gu

re P

att

ern

Pa

ram

ete

rs (

Be

fore

)

Page 31: WebSphere Message Broker - SHARE · David Coles – WebSphere Message Broker Level 3 Servi ce, IBM Hursley – dcoles@uk.ibm.com Wednesday 2 nd WebSphere Message Broker March 2011

31

Page 32: WebSphere Message Broker - SHARE · David Coles – WebSphere Message Broker Level 3 Servi ce, IBM Hursley – dcoles@uk.ibm.com Wednesday 2 nd WebSphere Message Broker March 2011

32Co

nfi

gu

re P

att

ern

Pa

ram

ete

rs (

Aft

er)

Page 33: WebSphere Message Broker - SHARE · David Coles – WebSphere Message Broker Level 3 Servi ce, IBM Hursley – dcoles@uk.ibm.com Wednesday 2 nd WebSphere Message Broker March 2011

33De

sig

n P

oin

ts

•E

very

file

conta

inin

g o

ne o

r m

ore

targ

et pro

pert

ies h

as a

pattern

para

mete

r gro

up c

reate

d a

uto

matically

•Lik

ew

ise, every

targ

et pro

pert

y h

as a

pattern

para

mete

r cre

ate

d

auto

matically

•T

he p

attern

is a

lways in a

valid

sta

te e

ven w

ith n

o r

efinem

ent

•P

attern

para

mete

r gro

ups c

an b

e a

dded, dele

ted a

nd e

dited a

s r

equired

•T

he d

efa

ult n

am

e fo

r a

patt

ern

pa

ram

ete

r g

roup is b

ased o

n the f

ile n

am

e

•O

nly

em

pty

pa

tte

rn p

ara

me

ter

gro

ups c

an b

e d

ele

ted

•P

attern

para

mete

rs c

an b

e a

dded, dele

ted a

nd e

dited a

s r

equired

•T

he d

efa

ult n

am

e fo

r a

patt

ern

pa

ram

ete

r is

based o

n the

ta

rget

pro

pert

y n

am

e

•O

nly

em

pty

pa

tte

rn p

ara

me

ters

can b

e r

em

oved –

targ

et

pro

pe

rtie

s c

annot float

free

,

the

y m

ust

alw

ays b

e m

apped

to

a p

atte

rn p

ara

me

ter

•T

he 1

:1 m

appin

g b

etw

een p

attern

para

mete

rs c

an b

e c

hanged b

y

shufflin

g the targ

et pro

pert

ies a

round (

dra

g a

nd d

rop)

Page 34: WebSphere Message Broker - SHARE · David Coles – WebSphere Message Broker Level 3 Servi ce, IBM Hursley – dcoles@uk.ibm.com Wednesday 2 nd WebSphere Message Broker March 2011

34Ad

d P

att

ern

Ca

teg

ori

es

Page 35: WebSphere Message Broker - SHARE · David Coles – WebSphere Message Broker Level 3 Servi ce, IBM Hursley – dcoles@uk.ibm.com Wednesday 2 nd WebSphere Message Broker March 2011

35De

sig

n P

oin

ts

•C

ate

gory

specific

ation is typic

ally

one H

TM

L file

•E

ach c

ate

gory

gets

a d

irecto

ry to s

tore

its

specific

ation

•P

attern

Auth

oring e

ditor

cre

ate

s a

skele

ton file

in the d

irecto

ry

•P

attern

auth

or

can u

se a

ny H

TM

L e

ditor

they c

hoose

•S

pecific

ation is p

ackaged into

the p

attern

plu

g-ins w

hen they a

re c

reate

d

•B

y c

onvention the c

ate

gory

specific

ation is c

alle

d overview.htm

•A

ll file

s a

nd s

ub-d

irecto

ries a

re p

ackaged a

s w

ell

•F

or

exa

mple

, to

bra

nd t

he c

ate

go

ry w

ith im

ages a

nd s

tyle

sheets

(CS

S)

•T

here

are

no r

estr

ictions o

n w

here

new

cate

gories a

re a

dded

•T

he p

att

ern

can b

e a

dded to

an

y c

ate

gory

either

exis

ting o

r ne

w

Page 36: WebSphere Message Broker - SHARE · David Coles – WebSphere Message Broker Level 3 Servi ce, IBM Hursley – dcoles@uk.ibm.com Wednesday 2 nd WebSphere Message Broker March 2011

36Bu

ild

Th

e P

att

ern

Plu

g-i

ns

Page 37: WebSphere Message Broker - SHARE · David Coles – WebSphere Message Broker Level 3 Servi ce, IBM Hursley – dcoles@uk.ibm.com Wednesday 2 nd WebSphere Message Broker March 2011

37Bu

ild

Th

e P

att

ern

Plu

g-i

ns

Page 38: WebSphere Message Broker - SHARE · David Coles – WebSphere Message Broker Level 3 Servi ce, IBM Hursley – dcoles@uk.ibm.com Wednesday 2 nd WebSphere Message Broker March 2011

38De

sig

n P

oin

ts

•T

he P

att

ern

Auth

orin

g E

ditor

cre

ate

s E

clip

se p

lug-i

ns

•E

clip

se p

rovid

es e

xce

llent

sup

port

for

plu

g-i

ns a

nd f

eatu

res f

or

dis

trib

utio

n

•S

om

e p

lug

-in info

rmatio

n is r

equ

ired s

uch a

s p

rovid

er

and

vers

ion

•It is n

ot re

com

mend

ed

to e

dit the g

en

era

ted p

lug-i

ns

•O

ne e

xceptio

n is t

o a

dd t

ransla

ted p

rop

ert

y f

iles into

the N

LS

plu

g-i

ns

Page 39: WebSphere Message Broker - SHARE · David Coles – WebSphere Message Broker Level 3 Servi ce, IBM Hursley – dcoles@uk.ibm.com Wednesday 2 nd WebSphere Message Broker March 2011

39Te

st

Th

e P

att

ern

Page 40: WebSphere Message Broker - SHARE · David Coles – WebSphere Message Broker Level 3 Servi ce, IBM Hursley – dcoles@uk.ibm.com Wednesday 2 nd WebSphere Message Broker March 2011

40Te

st

Th

e P

att

ern

Page 41: WebSphere Message Broker - SHARE · David Coles – WebSphere Message Broker Level 3 Servi ce, IBM Hursley – dcoles@uk.ibm.com Wednesday 2 nd WebSphere Message Broker March 2011

41De

sig

n P

oin

ts

•T

esting a

pattern

requires a

re-launch o

f th

e T

oolk

it

•R

un c

onfigura

tions a

re a

n o

ften m

isunders

tood a

rea o

f E

clip

se d

evelo

pm

ent so the

Pattern

Auth

orin

g E

ditor

pro

vid

es a

sim

ple

wa

y to

re

-launch the too

lkit:

•T

he p

attern

appears

in the P

attern

Explo

rer

and is r

eady to test

•T

he P

atte

rn A

uth

oring E

ditor

will

allo

w n

ew

cate

go

ries to b

e c

reate

d

•A

skele

ton p

atte

rn s

pecific

ation is c

reate

d w

hic

h c

an a

lso b

e c

hanged

•T

his

ste

p c

om

ple

tes the a

pplic

ation d

evelo

pm

ent cycle

for

a p

attern

•In

pra

ctice a

patt

ern

au

thor

would

loop a

round t

he

se s

teps m

an

y tim

es!

Page 42: WebSphere Message Broker - SHARE · David Coles – WebSphere Message Broker Level 3 Servi ce, IBM Hursley – dcoles@uk.ibm.com Wednesday 2 nd WebSphere Message Broker March 2011

42

Advanced T

opic

s

Page 43: WebSphere Message Broker - SHARE · David Coles – WebSphere Message Broker Level 3 Servi ce, IBM Hursley – dcoles@uk.ibm.com Wednesday 2 nd WebSphere Message Broker March 2011

43Tra

ns

form

ati

on

•T

he P

attern

Auth

oring e

ditor

uses X

Path

as its

expre

ssio

n language

•X

Path

is a

genera

l purp

ose e

xp

ressio

n language

!

•X

Path

expre

ssio

ns c

an tra

nsfo

rm p

attern

para

mete

r valu

es:

•P

attern

auth

ors

can c

onfigure

an X

Path

expre

ssio

n fo

r a

patt

ern

pa

ram

ete

r

•E

xpre

ssio

ns a

re e

valu

ate

d w

hen t

he p

atte

rn insta

nce is g

enera

ted

Page 44: WebSphere Message Broker - SHARE · David Coles – WebSphere Message Broker Level 3 Servi ce, IBM Hursley – dcoles@uk.ibm.com Wednesday 2 nd WebSphere Message Broker March 2011

44En

ab

lem

en

t

•E

nable

ment uses a

n X

Path

expre

ssio

n to c

ontr

ol w

hen a

pattern

para

mete

r is

enable

d in the P

attern

Insta

nce e

ditor

•T

he e

nable

ment expre

ssio

n is e

valu

ate

d e

very

tim

e a

pattern

para

mete

r re

fere

nced in the X

Path

expre

ssio

n c

hanges v

alu

e

•If the r

esult o

f th

e e

valu

ation is true

then the e

ditor

is e

nable

d

Page 45: WebSphere Message Broker - SHARE · David Coles – WebSphere Message Broker Level 3 Servi ce, IBM Hursley – dcoles@uk.ibm.com Wednesday 2 nd WebSphere Message Broker March 2011

45En

um

era

ted

Typ

es

•T

arg

et pro

pert

ies a

re s

trongly

typed

•S

trin

g, in

teger,

boole

an

and e

num

era

tions a

nd th

e m

ost

com

mon t

ypes

•A

n e

num

era

tion is a

lis

t of perm

issib

le v

alu

es for

a g

iven p

ropert

y:

•T

he P

attern

Auth

oring e

ditor

has full

support

for

enum

era

tions

•A

n e

num

era

ted t

ype is a

uto

ma

tically

cre

ate

d w

hen a

ta

rge

t p

ropert

y is a

dded

•T

he e

num

era

ted

type

inclu

des the d

ispla

y n

am

es a

nd p

rope

rty v

alu

es

•T

he lis

t of valu

es p

resente

d to

the

patte

rn u

ser

can

be r

educed if

required

Page 46: WebSphere Message Broker - SHARE · David Coles – WebSphere Message Broker Level 3 Servi ce, IBM Hursley – dcoles@uk.ibm.com Wednesday 2 nd WebSphere Message Broker March 2011

46

Pattern

Com

munitie

s

Page 47: WebSphere Message Broker - SHARE · David Coles – WebSphere Message Broker Level 3 Servi ce, IBM Hursley – dcoles@uk.ibm.com Wednesday 2 nd WebSphere Message Broker March 2011

47Pa

tte

rn C

om

mu

nit

ies

•P

attern

auth

oring c

reate

s p

attern

s w

hose v

alu

e m

ultip

lies a

s they a

re

share

d a

nd u

sed b

y a

com

munity o

f develo

pers

•P

ublic

and p

rivate

com

munitie

s a

re e

qually

inte

resting!

•S

o h

ow

to d

istr

ibute

and s

hare

pattern

s e

ffectively

?

•A

com

munity n

eeds to o

ffer

more

than just a r

epository

of assets

!

•S

pace f

or

conte

nt

such a

s p

att

ern

s a

nd s

ubflo

wnod

es

•F

oru

ms t

o h

ost

dis

cussio

ns a

nd t

hre

ad

ed c

onvers

atio

ns

•C

ate

gori

satio

n is im

port

ant

as t

he c

om

munity g

row

s! (t

axono

mie

s)

•E

ssential a

dm

inis

trative f

unctions s

uch a

s u

ser

manag

em

en

t

•N

ew

s a

rtic

les a

nd b

roa

dcasts

keep t

he s

ite f

resh

•T

here

are

litera

lly d

ozens o

f conte

nt m

anagem

ent syste

ms a

vaila

ble

•O

n the c

om

merc

ial sid

e w

e h

ave tried L

otu

s C

onnections a

nd R

ational

Asset M

anager

•O

pen s

ourc

e p

roje

cts

such a

s D

rupaland J

oom

laare

com

pelli

ng!

Page 48: WebSphere Message Broker - SHARE · David Coles – WebSphere Message Broker Level 3 Servi ce, IBM Hursley – dcoles@uk.ibm.com Wednesday 2 nd WebSphere Message Broker March 2011

48Pa

ck

ag

ing

a P

att

ern

Page 49: WebSphere Message Broker - SHARE · David Coles – WebSphere Message Broker Level 3 Servi ce, IBM Hursley – dcoles@uk.ibm.com Wednesday 2 nd WebSphere Message Broker March 2011

49Pa

tte

rn A

rch

ive

s

•T

he g

oal is

to s

implif

y the p

ackagin

g a

nd d

istr

ibution o

f pattern

s

•C

reating E

clip

se u

pdate

sites a

nd featu

res is a

fairly

com

ple

x task

•A

pattern

arc

hiv

e c

onta

ins the p

attern

plu

g-ins a

nd a

n E

clip

se featu

re

•T

he v

ers

ion o

f th

e f

eatu

re m

atc

hes t

he p

att

ern

vers

ion:

Page 50: WebSphere Message Broker - SHARE · David Coles – WebSphere Message Broker Level 3 Servi ce, IBM Hursley – dcoles@uk.ibm.com Wednesday 2 nd WebSphere Message Broker March 2011

50Cre

ati

ng

a C

om

mu

nit

y S

pa

ce

Page 51: WebSphere Message Broker - SHARE · David Coles – WebSphere Message Broker Level 3 Servi ce, IBM Hursley – dcoles@uk.ibm.com Wednesday 2 nd WebSphere Message Broker March 2011

51A S

ha

red

Re

po

sit

ory

fo

r P

att

ern

s

Page 52: WebSphere Message Broker - SHARE · David Coles – WebSphere Message Broker Level 3 Servi ce, IBM Hursley – dcoles@uk.ibm.com Wednesday 2 nd WebSphere Message Broker March 2011

52Dru

pa

l

•T

he d

em

onstr

ation s

yste

m is a

sta

ndard

Dru

palv6 insta

ll•

Dru

palis

a P

HP

-based o

pen-s

ourc

e c

onte

nt

managem

ent syste

m (

CM

S)

•A

key s

trength

of

Dru

palis

its

vib

rant com

munity o

f users

and d

evelo

pers

•D

rupalhas a

n e

xte

nsiv

e lis

t of

ma

ny h

und

reds o

f a

dd-o

n m

odule

s

•T

he follo

win

g c

ontr

ibute

d m

odule

s w

ere

insta

lled:

•V

oting is p

rovid

ed b

yF

iveS

tar

an

dV

otingA

PIm

odule

s

•S

ite s

earc

h is c

onfigure

d (

this

is a

built

in m

odule

)

•A

n e

asy to

use

Adm

inis

tration

mo

dule

is a

vaila

ble

•P

ages b

ased a

round a

n im

age a

re p

rovid

ed b

y t

he

Image

module

•C

ate

gorisation o

f conte

nt

made a

vaila

ble

by the

Taxonom

ym

odule

•It took just over

one h

our

to c

om

ple

te the s

yste

m s

et up!

Page 53: WebSphere Message Broker - SHARE · David Coles – WebSphere Message Broker Level 3 Servi ce, IBM Hursley – dcoles@uk.ibm.com Wednesday 2 nd WebSphere Message Broker March 2011

53Co

mm

un

ity B

ran

din

g

Page 54: WebSphere Message Broker - SHARE · David Coles – WebSphere Message Broker Level 3 Servi ce, IBM Hursley – dcoles@uk.ibm.com Wednesday 2 nd WebSphere Message Broker March 2011

54In

sta

llin

g P

att

ern

s

•T

he P

att

ern

Explo

rer

pro

vid

es a

do

wn

loa

d c

apa

bili

ty f

or

patt

ern

arc

hiv

es

•P

att

ern

arc

hiv

es c

an b

e insta

lled f

rom

a local file

syste

m o

r fr

om

a U

RL

•H

TT

P/S

is n

ot support

ed –

inste

ad

login

, do

wn

loa

d a

nd insta

ll fr

om

the f

ile

syste

m

•In

sta

llatio

n c

om

ple

tes w

ith

ou

t a t

oolk

it

resta

rt

•P

att

ern

s a

re u

nin

sta

lled t

hro

ugh t

he

Eclip

se u

pdate

s f

eatu

re:

Help

>

Soft

ware

Upd

ate

s

•.patternzip

file

s c

an a

lso b

e

doub

le c

licked w

hic

h r

uns a

n insta

ller

applic

atio

n (

the

file

exte

nsio

n is

regis

tere

d b

y t

he t

oolk

it)

Page 55: WebSphere Message Broker - SHARE · David Coles – WebSphere Message Broker Level 3 Servi ce, IBM Hursley – dcoles@uk.ibm.com Wednesday 2 nd WebSphere Message Broker March 2011

55Q

ue

sti

on

s –

Ple

as

e F

ill

Ou

t Y

ou

r S

es

sio

n

Ev

alu

ati

on

Fo

rm!