Introduction to Mule Esb
-
Upload
rajkattamuri -
Category
Technology
-
view
273 -
download
0
Transcript of Introduction to Mule Esb
![Page 1: Introduction to Mule Esb](https://reader036.fdocuments.in/reader036/viewer/2022082905/5877f74a1a28ab91178b4ea5/html5/thumbnails/1.jpg)
© SpringPeople Software Private Limited, All Rights Reserved.
Introduction to Mule ESB
![Page 2: Introduction to Mule Esb](https://reader036.fdocuments.in/reader036/viewer/2022082905/5877f74a1a28ab91178b4ea5/html5/thumbnails/2.jpg)
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](https://reader036.fdocuments.in/reader036/viewer/2022082905/5877f74a1a28ab91178b4ea5/html5/thumbnails/3.jpg)
Enterprise Service Backbone
• Mule is an open-source Enterprise Service Backbone(ESB)
![Page 4: Introduction to Mule Esb](https://reader036.fdocuments.in/reader036/viewer/2022082905/5877f74a1a28ab91178b4ea5/html5/thumbnails/4.jpg)
Mule – Advanced Technologies
•SEDAStaged Event-Driven Architecture
•Java NIOJava New Input/Output
![Page 5: Introduction to Mule Esb](https://reader036.fdocuments.in/reader036/viewer/2022082905/5877f74a1a28ab91178b4ea5/html5/thumbnails/5.jpg)
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](https://reader036.fdocuments.in/reader036/viewer/2022082905/5877f74a1a28ab91178b4ea5/html5/thumbnails/6.jpg)
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](https://reader036.fdocuments.in/reader036/viewer/2022082905/5877f74a1a28ab91178b4ea5/html5/thumbnails/7.jpg)
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](https://reader036.fdocuments.in/reader036/viewer/2022082905/5877f74a1a28ab91178b4ea5/html5/thumbnails/8.jpg)
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](https://reader036.fdocuments.in/reader036/viewer/2022082905/5877f74a1a28ab91178b4ea5/html5/thumbnails/9.jpg)
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](https://reader036.fdocuments.in/reader036/viewer/2022082905/5877f74a1a28ab91178b4ea5/html5/thumbnails/10.jpg)
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](https://reader036.fdocuments.in/reader036/viewer/2022082905/5877f74a1a28ab91178b4ea5/html5/thumbnails/11.jpg)
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](https://reader036.fdocuments.in/reader036/viewer/2022082905/5877f74a1a28ab91178b4ea5/html5/thumbnails/12.jpg)
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](https://reader036.fdocuments.in/reader036/viewer/2022082905/5877f74a1a28ab91178b4ea5/html5/thumbnails/13.jpg)
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](https://reader036.fdocuments.in/reader036/viewer/2022082905/5877f74a1a28ab91178b4ea5/html5/thumbnails/14.jpg)
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](https://reader036.fdocuments.in/reader036/viewer/2022082905/5877f74a1a28ab91178b4ea5/html5/thumbnails/15.jpg)
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](https://reader036.fdocuments.in/reader036/viewer/2022082905/5877f74a1a28ab91178b4ea5/html5/thumbnails/16.jpg)
Thank you
© SpringPeople Software Private Limited, All Rights Reserved.