Introduction to Mule Esb

16
© SpringPeople Software Private Limited, All Rights Reserved. Introduction to Mule ESB

Transcript of Introduction to Mule Esb

Page 1: Introduction to Mule Esb

© SpringPeople Software Private Limited, All Rights Reserved.

Introduction to Mule ESB

Page 2: Introduction to Mule Esb

Agenda• What is Mule?• How do you use Mule?• What are the core Mule concepts?• Learning mule with File endpoints

Page 3: Introduction to Mule Esb

Enterprise Service Backbone

• Mule is an open-source Enterprise Service Backbone(ESB)

Page 4: Introduction to Mule Esb

Mule – Advanced Technologies

•SEDAStaged Event-Driven Architecture

•Java NIOJava New Input/Output

Page 5: Introduction to Mule Esb

Mule’s “Moves Things Around”• Folder to folder• Queue to queue• Shared memory to shared memory• Using different types of transports• In a flexible way

Page 6: Introduction to Mule Esb

XML Pipeline

© SpringPeople Software Private Limited, All Rights Reserved.

• An XML pipeline is a series of operation thatare performed on one or more XML files

• Examples include:– validate– transform– prune (remove nodes)– split (break a single XML file into many files)– merge (join two or more files together)

Page 7: Introduction to Mule Esb

CRV Example

© SpringPeople Software Private Limited, All Rights Reserved.

• Flow of XML document through approval processes

SubmitCRV

Deed Matched CRV

SSNStrippedCRV

Income Tax Audit

County Audit

CountyApproval

State Audit

StateApproval

Page 8: Introduction to Mule Esb

Decomposition

© SpringPeople Software Private Limited, All Rights Reserved.

• Example of XML Operations used on CRV

Validate Split

Remove SSNElement

Store

Modify Value

AddElement

Modify Value

Add Element

Page 9: Introduction to Mule Esb

Core Mule Concepts

© SpringPeople Software Private Limited, All Rights Reserved.

• Mule Manager• Mule Model• Universal Message Object (UMO)• Endpoints• External Applications

Page 10: Introduction to Mule Esb

Universal Message Object (UMO)

© SpringPeople Software Private Limited, All Rights Reserved.

• A UMO is a type of Java object that can– receive events "from anywhere"– send events

• UMO Components are usually your business objects. They are components that execute business logic on an incoming event

• UMO are standard JavaBeans (containers)• There is no Mule-specific code in your components• Mule handles all routing and transformation of events to

and from your objects based on the configuration of your component

Page 11: Introduction to Mule Esb

Mule Event Flow

© SpringPeople Software Private Limited, All Rights Reserved.

• The nine stages of a mule event– first 2 – inbound– middle 4 – component– last 2 – outbound

Endpoint(Message Receiver)

Endpoint(Message Dispatcher)

Inbound Router

Outbound Router

Inbound Transformer

Outbound Transformer

Interceptor

Service Invocation

Interceptor

Inbound

Component

Outbound

Optional Step

Page 12: Introduction to Mule Esb

Built-in Router Classes

© SpringPeople Software Private Limited, All Rights Reserved.

Outbound Response

Filtering Outbound Router Response Aggregator

Recipient List

Multicasting Router

Chaining Router

Message Splitter

Filtering List Message Splitter

Filtering Xml Message Splitter

Exception Based Router

Page 13: Introduction to Mule Esb

Exception Handling

© SpringPeople Software Private Limited, All Rights Reserved.

• Mule has a special way of handling non-happy path processing.This is called an "Exception Strategy" but is it really just and exception path and there is very little strategy involved.

• There are three places you can associate an exception strategy– connector– component– model (set for all components in a model)

Page 14: Introduction to Mule Esb

Exception Strategy

© SpringPeople Software Private Limited, All Rights Reserved.

• We want all invalid documents to be moved into theerror folder.

<exception-strategy className=org.mule.impl.DefaultComponentExceptionStrategy">

<endpoint address="file:///c:/mule-class/error"/></exception-strategy>

Page 15: Introduction to Mule Esb

Who will benefit?

© SpringPeople Software Private Limited, All Rights Reserved.

Developers, Enterprise Architects and Development Managers having

knowledge in JAVA

Page 16: Introduction to Mule Esb

Thank you

© SpringPeople Software Private Limited, All Rights Reserved.