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

SpringPeople Introduction to Mule ESB

Embed Size (px)

DESCRIPTION

MuleSoft Certified Mule Essentials training is for Developers, Enterprise Architects and Development Managers having knowledge in JAVA.

Citation preview

Page 1: SpringPeople Introduction to Mule ESB

© SpringPeople Software Private Limited, All Rights Reserved. © SpringPeople Software Private Limited, All Rights Reserved.

Introduction to Mule ESB

Page 2: SpringPeople Introduction to Mule ESB

© SpringPeople Software Private Limited, All Rights Reserved.

Agenda

• What is Mule?

• How do you use Mule?

• What are the core Mule concepts?

• Learning mule with File endpoints

Page 3: SpringPeople Introduction to Mule ESB

© SpringPeople Software Private Limited, All Rights Reserved.

Enterprise Service Backbone

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

Page 4: SpringPeople Introduction to Mule ESB

© SpringPeople Software Private Limited, All Rights Reserved.

Mule – Advanced Technologies

•SEDA Staged Event-Driven Architecture

•Java NIO Java New Input/Output

Page 5: SpringPeople Introduction to Mule ESB

© SpringPeople Software Private Limited, All Rights Reserved.

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: SpringPeople Introduction to Mule ESB

© SpringPeople Software Private Limited, All Rights Reserved.

XML Pipeline

• An XML pipeline is a series of operation that are 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: SpringPeople Introduction to Mule ESB

© SpringPeople Software Private Limited, All Rights Reserved.

CRV Example

• Flow of XML document through approval processes

Submit

CRV

Deed

Matched

CRV

SSN

Stripped

CRV

Income

Tax

Audit

County

Audit

County

Approval

State

Audit

State

Approval

Page 8: SpringPeople Introduction to Mule ESB

© SpringPeople Software Private Limited, All Rights Reserved.

Decomposition

• Example of XML Operations used on CRV

Validate Split

Remove

SSN

Element

Store

Modify

Value

Add

Element

Modify

Value

Add

Element

Page 9: SpringPeople Introduction to Mule ESB

© SpringPeople Software Private Limited, All Rights Reserved.

Core Mule Concepts

• Mule Manager

• Mule Model

• Universal Message Object (UMO)

• Endpoints

• External Applications

Page 10: SpringPeople Introduction to Mule ESB

© SpringPeople Software Private Limited, All Rights Reserved.

Universal Message Object (UMO)

• 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: SpringPeople Introduction to Mule ESB

© SpringPeople Software Private Limited, All Rights Reserved.

Mule Event Flow

• 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: SpringPeople Introduction to Mule ESB

© SpringPeople Software Private Limited, All Rights Reserved.

Built-in Router Classes

Inbound Outbound Response

Idempotent Receiver Filtering Outbound Router Response Aggregator

Selective Consumer Recipient List

Aggregator Multicasting Router

Resequencer Chaining Router

Forwarding Consumer Message Splitter

Filtering List Message

Splitter

Filtering Xml Message

Splitter

Exception Based Router

Page 13: SpringPeople Introduction to Mule ESB

© SpringPeople Software Private Limited, All Rights Reserved.

Exception Handling

• 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: SpringPeople Introduction to Mule ESB

© SpringPeople Software Private Limited, All Rights Reserved.

Exception Strategy

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

<exception-strategy

className=org.mule.impl.DefaultComponentExceptionStrategy">

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

</exception-strategy>

Page 15: SpringPeople Introduction to Mule ESB

© SpringPeople Software Private Limited, All Rights Reserved.

Start Developing Apps with Mule ESB in 3 Days Flat

Attend the 3-Days “MuleSoft Certified Mule Essentials Training”

View Complete Details

Page 16: SpringPeople Introduction to Mule ESB

© SpringPeople Software Private Limited, All Rights Reserved.

Who will benefit?

Developers, Enterprise Architects and Development Managers having

knowledge in JAVA

View Complete Details

Page 17: SpringPeople Introduction to Mule ESB

© SpringPeople Software Private Limited, All Rights Reserved.

Q & A

[email protected] +91 80 65679700

www.springpeople.com

A SpringSource & MuleSoft Certified Partner and

VMware Authorized Training Center