More Related Content Similar to Introduction to mule esb (20) More from Praneethchampion (14) Introduction to mule esb2. Agenda
ā¢ What is Mule?
ā¢ How do you use Mule?
ā¢ What are the core Mule concepts?
ā¢ Learning mule with File endpoints
4. Mule ā Advanced Technologies
ļ ā¢SEDA
ļ ļ¼Staged Event-Driven Architecture
ļ ā¢Java NIO
ļ ļ¼Java New Input/Output
5. 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
6. XML Pipeline
Ā© SpringPeople Software Private Limited, All
Rights Reserved.
ā¢ 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)
7. CRV Example
Ā© SpringPeople Software Private Limited, All
Rights Reserved.
ā¢ 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
8. Decomposition
Ā© SpringPeople Software Private Limited, All
Rights Reserved.
ā¢ Example of XML Operations used on CRV
Validate Split
Remove
SSN
Element
Store
Modify
Value
Add
Element
Modify
Value
Add
Element
9. Core Mule Concepts
Ā© SpringPeople Software Private Limited, All
Rights Reserved.
ā¢ Mule Manager
ā¢ Mule Model
ā¢ Universal Message Object (UMO)
ā¢ Endpoints
ā¢ External Applications
10. 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
11. 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
12. Built-in Router Classes
Ā© SpringPeople Software Private Limited, All
Rights Reserved.
Outbound Response
Filtering Outbound Router ResponseAggregator
Recipient List
Multicasting Router
Chaining Router
Message Splitter
Filtering List Message
Splitter
Filtering Xml Message
Splitter
Exception Based Router
13. 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)
14. Exception Strategy
Ā© SpringPeople Software Private Limited, All
Rights Reserved.
ā¢ 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>
15. Who will benefit?
Ā© SpringPeople Software Private Limited, All
Rights Reserved.
Developers, Enterprise Architects and Development Managers having
knowledge in JAVA