SlideShare a Scribd company logo
1 of 17
CORE CONCEPTS - MULE
Presented by
Sindhu VL
Model :
 The first logical layer is the model layer. A Mule
model represents the run-time environment that
hosts services.
 It defines the behavior of Mule when processing
requests handled by these services.
 Consequently, the model that the Mule instance
would host would establish a runtime environment
optimized for asynchronous processing of
messages, as no synchronous reply is expected
anywhere in the overall message processing
chain.
Service :
 A Mule service is composed of all the Mule entities involved in
processing particular requests in predefined manners.
 A service is defined by a specific configuration. This
configuration determines the different elements, from the
different layers of responsibility, that will be mobilized to
process the requests that it'll be open to receive.
 Depending on the type of input channel it uses, a service may
or may not be publicly accessible outside of the ESB.
 For the time it gets handled by a service, a request is
associated with a session object.
 As its name suggests, this object carries all the necessary
context for the pro-cessing of a message while it transits
through the service.
Transports :
 The transport layer is in charge of receiving or
sending messages. This is why it's involved
with both inbound and outbound
communications.
 A transport manifests itself in the configuration
by the following elements: connectors,
endpoints and transformers.
Connectors :
 A connector is in charge of controlling the
usage of a particular protocol.
 It's configured with parameters that are
specific to this protocol and holds any state
that can be shared with the underlying entities
in charge of the actual communications.
 For example, the FileConnector can read and
write file system files.
Configuring connectors :
 FileConnector
 JDBC Connector
 HTTP Connector
 STDIO Connector
 JMS Connector
 Proceed to next slide to see the configuration
of all the above connectors.
FileConnector :
The configuration for file connector is as follows:
<file:connector name="FileConnector" streaming="false"
pollingFrequency="1000">
<file:expression-filename-parser/>
</file:connector>
JDBC Connector :
The configuration for JDBC connector is as
follows :
<jdbc:connector name="jdbcConnector"
dataSource-ref="dataSource“>
<jdbc:query key="statsInsert" value="insert into
alerts values (0, 344, Sindhu', Vankam')"/>
</jdbc:connector>
HTTP Connector :
The configuration for HTTP connector is as
follows :
<http:connector name="HttpConnector"
proxyHostname="${proxyHostname}"
proxyPort=="${proxyPort}"
proxyUsername="${proxyUsername}"
proxyPassword="${proxyPassword}"/>
STDIO Connector :
The configuration for STDIO connector is as
follows :
<stdio:connector
name="SystemStreamConnector"
promptMessage="Please enter something:"
messageDelayTime="1000" />
JMS Connector :
The configuration for JMS connector is as
follows :
<jms:activemq-connector
name="jmsQueueConnector"
specification="1.0.2b"
brokerURL="tcp://localhost:61616" />
Endpoints :
 Inbound and outbound endpoints exist in the context of a
particular service and represent the expected entry and exit
points for messages, respectively.
 These end-points are defined in the inbound and outbound
routers.
 It's also possible to define an inbound endpoint in a response
router.
 In that case, the inbound endpoint acts as a response
endpoint where asynchronous replies will be consolidated
before the service returns its own response.
 Global endpoints can be considered abstract entities that get
reified only when referenced in the context of a service: as
such, they're a convenient way to share common
configuration attributes.
Transformer :
 A transformer optionally changes incoming or outgoing messages in
some way.This is usually done to make the message format
useable by a downstream function
For examples, the ByteArrayToString transformer converts byte
arrays into String objects.If we want our own transformers to
convert input we can write our own java and we can call from the
mule.
We can implement custom java transformer by extends
AbstractTransformer and AbstractMessageAwareTransformer.
AbstractTransformer is a normal Transformer, it will carry only
payload in the sense input/result from before execution.
AbstractMessageAwareTransformer is a special transformer, It
will carry payload, messahe properties of mule and alo details
regarding exception.
Routers :
 Routers play a crucial role in controlling the trajectory a message will follow
when it transits in Mule.
 They're the gatekeepers of the endpoints of a service. In fact, they act like
railroad switches, taking care of keeping messages on the right succession
of tracks so they can reach their intended destinations.
A router is the object that does something with messages once they have
been received by a connector, or prior to being sent out by the connector.
pass-through-router: Input will pass as it is to outbound from inbound.
Single service will be available.
filtering-router: input will pass based on condition it's like filtering input.
Multiple Services will be available.
chaining-router: Every statement will pick up by procedure functionality,
nothing but there is no condition after finishing one service it will go to the
next service. Multiple Services will be available.
etc...
Filter :
 A filter optionally filters incoming or outgoing
messages that are coming into or going out from a
connector.
 For example, the File Provider comes with a
FilenameWildcardFilter that restricts which files
are read by the connector based on file name
patterns.
 For example only files with the .xml extension can
be routed.
 Note: writing condition is filtering-router and way
of condition is filter. Based on filter, service will be
picking up by filtering-router.
Components :
 Components are usually business objects.
 They are components that execute business
logic on an incoming event.
 Components are standard JavaBeans
(containers).
 There is no Mule-specific code in components,
it is a java class to implement business logic
especially.
Thank You

More Related Content

What's hot

Mule overview
Mule overviewMule overview
Mule overview
F K
 
Mule ESB
Mule ESBMule ESB
Mule ESB
niravn
 

What's hot (20)

Anypoint connector dev kit
Anypoint connector dev kitAnypoint connector dev kit
Anypoint connector dev kit
 
Mule core concepts
Mule core conceptsMule core concepts
Mule core concepts
 
Mule real-world-old
Mule real-world-oldMule real-world-old
Mule real-world-old
 
Mule overview
Mule overviewMule overview
Mule overview
 
Mule soa
Mule soaMule soa
Mule soa
 
Making flow Mule
Making flow MuleMaking flow Mule
Making flow Mule
 
Rabbit Mq in Mule
Rabbit Mq in MuleRabbit Mq in Mule
Rabbit Mq in Mule
 
Mule ESB
Mule ESBMule ESB
Mule ESB
 
Implementation in mule esb
Implementation in mule esbImplementation in mule esb
Implementation in mule esb
 
Mule message structure
Mule message structureMule message structure
Mule message structure
 
Using mule configuration patterns
Using mule configuration patternsUsing mule configuration patterns
Using mule configuration patterns
 
Mule enterprise service introduction
Mule enterprise service introductionMule enterprise service introduction
Mule enterprise service introduction
 
Overview of Mule
Overview of MuleOverview of Mule
Overview of Mule
 
Mule ESB
Mule ESBMule ESB
Mule ESB
 
Core concepts in mule
Core concepts in muleCore concepts in mule
Core concepts in mule
 
Mule rabbit mq
Mule rabbit mqMule rabbit mq
Mule rabbit mq
 
Rabbit mq in mule
Rabbit mq in muleRabbit mq in mule
Rabbit mq in mule
 
Mule Fundamentals
Mule FundamentalsMule Fundamentals
Mule Fundamentals
 
Mule ESB Fundamentals
Mule ESB FundamentalsMule ESB Fundamentals
Mule ESB Fundamentals
 
Mule soft esb – data validation best practices
Mule soft esb – data validation best practicesMule soft esb – data validation best practices
Mule soft esb – data validation best practices
 

Viewers also liked

Viewers also liked (16)

Mule ESB integration with Stripe
Mule ESB integration with StripeMule ESB integration with Stripe
Mule ESB integration with Stripe
 
Mule with velocity
Mule with velocityMule with velocity
Mule with velocity
 
Java useful in Mule
Java useful in MuleJava useful in Mule
Java useful in Mule
 
Webservice with vm in mule
Webservice with vm in muleWebservice with vm in mule
Webservice with vm in mule
 
Back to the Future: Understand and Optimize your IBM Notes and Domino Infrast...
Back to the Future: Understand and Optimize your IBM Notes and Domino Infrast...Back to the Future: Understand and Optimize your IBM Notes and Domino Infrast...
Back to the Future: Understand and Optimize your IBM Notes and Domino Infrast...
 
Mule management console
Mule management consoleMule management console
Mule management console
 
Mule Webservices
Mule WebservicesMule Webservices
Mule Webservices
 
How to increase your understanding of application usage with LeanIX and OneLo...
How to increase your understanding of application usage with LeanIX and OneLo...How to increase your understanding of application usage with LeanIX and OneLo...
How to increase your understanding of application usage with LeanIX and OneLo...
 
Bengkel Gamelan - Unity APK & Asset Size Optimization
Bengkel Gamelan - Unity APK & Asset Size OptimizationBengkel Gamelan - Unity APK & Asset Size Optimization
Bengkel Gamelan - Unity APK & Asset Size Optimization
 
Mule scopes foreach_scope
Mule scopes foreach_scopeMule scopes foreach_scope
Mule scopes foreach_scope
 
Mule management console
Mule management consoleMule management console
Mule management console
 
DockerCon 2016 Ecosystem - Everything You Need to Know About Docker and Stora...
DockerCon 2016 Ecosystem - Everything You Need to Know About Docker and Stora...DockerCon 2016 Ecosystem - Everything You Need to Know About Docker and Stora...
DockerCon 2016 Ecosystem - Everything You Need to Know About Docker and Stora...
 
Collection Splitter Aggregator in Mule ESB
Collection Splitter Aggregator in Mule ESBCollection Splitter Aggregator in Mule ESB
Collection Splitter Aggregator in Mule ESB
 
Kubernetes Networking - Giragadurai Vallirajan
Kubernetes Networking - Giragadurai VallirajanKubernetes Networking - Giragadurai Vallirajan
Kubernetes Networking - Giragadurai Vallirajan
 
Kubernetes Basics
Kubernetes BasicsKubernetes Basics
Kubernetes Basics
 
Kubernetes Networking
Kubernetes NetworkingKubernetes Networking
Kubernetes Networking
 

Similar to Core concepts - mule (20)

Concepts in mule
Concepts in muleConcepts in mule
Concepts in mule
 
Mule core concepts
Mule core conceptsMule core concepts
Mule core concepts
 
Mule core concepts
Mule core conceptsMule core concepts
Mule core concepts
 
Working of mule
Working of muleWorking of mule
Working of mule
 
How muleworks
How muleworksHow muleworks
How muleworks
 
How muleworks
How muleworksHow muleworks
How muleworks
 
Mulesoft ppt
Mulesoft pptMulesoft ppt
Mulesoft ppt
 
Mule ESB
Mule ESBMule ESB
Mule ESB
 
Mulesoftppt
Mulesoftppt Mulesoftppt
Mulesoftppt
 
Axis2
Axis2Axis2
Axis2
 
Mule
MuleMule
Mule
 
ESB introduction using Mule
ESB introduction using MuleESB introduction using Mule
ESB introduction using Mule
 
Mule esb
Mule esbMule esb
Mule esb
 
Mule esb
Mule esbMule esb
Mule esb
 
Mule esb presentation 2015
Mule esb presentation 2015Mule esb presentation 2015
Mule esb presentation 2015
 
Mule esb
Mule esbMule esb
Mule esb
 
Mule esb
Mule esbMule esb
Mule esb
 
Mule esb
Mule esbMule esb
Mule esb
 
Mule esb Basics
Mule esb BasicsMule esb Basics
Mule esb Basics
 
Mule esb
Mule esbMule esb
Mule esb
 

More from Sindhu VL

More from Sindhu VL (20)

Mule - error handling
Mule - error handling Mule - error handling
Mule - error handling
 
Mule - beginners guide
Mule - beginners guideMule - beginners guide
Mule - beginners guide
 
Error handling with respect to mule
Error handling with respect to muleError handling with respect to mule
Error handling with respect to mule
 
Basics of mule for beginners
Basics of mule for beginnersBasics of mule for beginners
Basics of mule for beginners
 
Mule testing
Mule   testingMule   testing
Mule testing
 
Mule securing
Mule   securingMule   securing
Mule securing
 
Mule debugging
Mule   debuggingMule   debugging
Mule debugging
 
Service orchestration by using flows
Service orchestration by using flowsService orchestration by using flows
Service orchestration by using flows
 
Configuration patterns in mule
Configuration patterns in muleConfiguration patterns in mule
Configuration patterns in mule
 
Bindings of components in mule
Bindings of components in muleBindings of components in mule
Bindings of components in mule
 
Using maven with mule
Using maven with muleUsing maven with mule
Using maven with mule
 
Using flows for service orchestration
Using flows for service orchestrationUsing flows for service orchestration
Using flows for service orchestration
 
Component bindings in mule
Component bindings in muleComponent bindings in mule
Component bindings in mule
 
Mule requestor component
Mule requestor componentMule requestor component
Mule requestor component
 
Encrption in mule
Encrption in muleEncrption in mule
Encrption in mule
 
Enterprise service bus mule
Enterprise service bus  muleEnterprise service bus  mule
Enterprise service bus mule
 
Mule errors
Mule errorsMule errors
Mule errors
 
Groovy component
Groovy componentGroovy component
Groovy component
 
Mule esb for beginners
Mule esb for beginnersMule esb for beginners
Mule esb for beginners
 
Design flows in mule
Design flows in muleDesign flows in mule
Design flows in mule
 

Recently uploaded

Just Call Vip call girls dharamshala Escorts ☎️9352988975 Two shot with one g...
Just Call Vip call girls dharamshala Escorts ☎️9352988975 Two shot with one g...Just Call Vip call girls dharamshala Escorts ☎️9352988975 Two shot with one g...
Just Call Vip call girls dharamshala Escorts ☎️9352988975 Two shot with one g...
gajnagarg
 
怎样办理伯明翰大学学院毕业证(Birmingham毕业证书)成绩单留信认证
怎样办理伯明翰大学学院毕业证(Birmingham毕业证书)成绩单留信认证怎样办理伯明翰大学学院毕业证(Birmingham毕业证书)成绩单留信认证
怎样办理伯明翰大学学院毕业证(Birmingham毕业证书)成绩单留信认证
eeanqy
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
dollysharma2066
 
call girls in Dakshinpuri (DELHI) 🔝 >༒9953056974 🔝 genuine Escort Service 🔝✔️✔️
call girls in Dakshinpuri  (DELHI) 🔝 >༒9953056974 🔝 genuine Escort Service 🔝✔️✔️call girls in Dakshinpuri  (DELHI) 🔝 >༒9953056974 🔝 genuine Escort Service 🔝✔️✔️
call girls in Dakshinpuri (DELHI) 🔝 >༒9953056974 🔝 genuine Escort Service 🔝✔️✔️
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Peaches App development presentation deck
Peaches App development presentation deckPeaches App development presentation deck
Peaches App development presentation deck
tbatkhuu1
 
Abortion Pills in Oman (+918133066128) Cytotec clinic buy Oman Muscat
Abortion Pills in Oman (+918133066128) Cytotec clinic buy Oman MuscatAbortion Pills in Oman (+918133066128) Cytotec clinic buy Oman Muscat
Abortion Pills in Oman (+918133066128) Cytotec clinic buy Oman Muscat
Abortion pills in Kuwait Cytotec pills in Kuwait
 
➥🔝 7737669865 🔝▻ dharamshala Call-girls in Women Seeking Men 🔝dharamshala🔝 ...
➥🔝 7737669865 🔝▻ dharamshala Call-girls in Women Seeking Men  🔝dharamshala🔝  ...➥🔝 7737669865 🔝▻ dharamshala Call-girls in Women Seeking Men  🔝dharamshala🔝  ...
➥🔝 7737669865 🔝▻ dharamshala Call-girls in Women Seeking Men 🔝dharamshala🔝 ...
amitlee9823
 
Whitefield Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Ba...
Whitefield Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Ba...Whitefield Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Ba...
Whitefield Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Ba...
amitlee9823
 

Recently uploaded (20)

Just Call Vip call girls dharamshala Escorts ☎️9352988975 Two shot with one g...
Just Call Vip call girls dharamshala Escorts ☎️9352988975 Two shot with one g...Just Call Vip call girls dharamshala Escorts ☎️9352988975 Two shot with one g...
Just Call Vip call girls dharamshala Escorts ☎️9352988975 Two shot with one g...
 
Sector 105, Noida Call girls :8448380779 Model Escorts | 100% verified
Sector 105, Noida Call girls :8448380779 Model Escorts | 100% verifiedSector 105, Noida Call girls :8448380779 Model Escorts | 100% verified
Sector 105, Noida Call girls :8448380779 Model Escorts | 100% verified
 
怎样办理伯明翰大学学院毕业证(Birmingham毕业证书)成绩单留信认证
怎样办理伯明翰大学学院毕业证(Birmingham毕业证书)成绩单留信认证怎样办理伯明翰大学学院毕业证(Birmingham毕业证书)成绩单留信认证
怎样办理伯明翰大学学院毕业证(Birmingham毕业证书)成绩单留信认证
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
 
UI:UX Design and Empowerment Strategies for Underprivileged Transgender Indiv...
UI:UX Design and Empowerment Strategies for Underprivileged Transgender Indiv...UI:UX Design and Empowerment Strategies for Underprivileged Transgender Indiv...
UI:UX Design and Empowerment Strategies for Underprivileged Transgender Indiv...
 
❤Personal Whatsapp Number 8617697112 Samba Call Girls 💦✅.
❤Personal Whatsapp Number 8617697112 Samba Call Girls 💦✅.❤Personal Whatsapp Number 8617697112 Samba Call Girls 💦✅.
❤Personal Whatsapp Number 8617697112 Samba Call Girls 💦✅.
 
call girls in Dakshinpuri (DELHI) 🔝 >༒9953056974 🔝 genuine Escort Service 🔝✔️✔️
call girls in Dakshinpuri  (DELHI) 🔝 >༒9953056974 🔝 genuine Escort Service 🔝✔️✔️call girls in Dakshinpuri  (DELHI) 🔝 >༒9953056974 🔝 genuine Escort Service 🔝✔️✔️
call girls in Dakshinpuri (DELHI) 🔝 >༒9953056974 🔝 genuine Escort Service 🔝✔️✔️
 
Sector 104, Noida Call girls :8448380779 Model Escorts | 100% verified
Sector 104, Noida Call girls :8448380779 Model Escorts | 100% verifiedSector 104, Noida Call girls :8448380779 Model Escorts | 100% verified
Sector 104, Noida Call girls :8448380779 Model Escorts | 100% verified
 
The hottest UI and UX Design Trends 2024
The hottest UI and UX Design Trends 2024The hottest UI and UX Design Trends 2024
The hottest UI and UX Design Trends 2024
 
Hingoli ❤CALL GIRL 8617370543 ❤CALL GIRLS IN Hingoli ESCORT SERVICE❤CALL GIRL
Hingoli ❤CALL GIRL 8617370543 ❤CALL GIRLS IN Hingoli ESCORT SERVICE❤CALL GIRLHingoli ❤CALL GIRL 8617370543 ❤CALL GIRLS IN Hingoli ESCORT SERVICE❤CALL GIRL
Hingoli ❤CALL GIRL 8617370543 ❤CALL GIRLS IN Hingoli ESCORT SERVICE❤CALL GIRL
 
call girls in Kaushambi (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝...
call girls in Kaushambi (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝...call girls in Kaushambi (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝...
call girls in Kaushambi (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝...
 
Top Rated Pune Call Girls Koregaon Park ⟟ 6297143586 ⟟ Call Me For Genuine S...
Top Rated  Pune Call Girls Koregaon Park ⟟ 6297143586 ⟟ Call Me For Genuine S...Top Rated  Pune Call Girls Koregaon Park ⟟ 6297143586 ⟟ Call Me For Genuine S...
Top Rated Pune Call Girls Koregaon Park ⟟ 6297143586 ⟟ Call Me For Genuine S...
 
High Profile Escorts Nerul WhatsApp +91-9930687706, Best Service
High Profile Escorts Nerul WhatsApp +91-9930687706, Best ServiceHigh Profile Escorts Nerul WhatsApp +91-9930687706, Best Service
High Profile Escorts Nerul WhatsApp +91-9930687706, Best Service
 
Top Rated Pune Call Girls Saswad ⟟ 6297143586 ⟟ Call Me For Genuine Sex Serv...
Top Rated  Pune Call Girls Saswad ⟟ 6297143586 ⟟ Call Me For Genuine Sex Serv...Top Rated  Pune Call Girls Saswad ⟟ 6297143586 ⟟ Call Me For Genuine Sex Serv...
Top Rated Pune Call Girls Saswad ⟟ 6297143586 ⟟ Call Me For Genuine Sex Serv...
 
Peaches App development presentation deck
Peaches App development presentation deckPeaches App development presentation deck
Peaches App development presentation deck
 
💫✅jodhpur 24×7 BEST GENUINE PERSON LOW PRICE CALL GIRL SERVICE FULL SATISFACT...
💫✅jodhpur 24×7 BEST GENUINE PERSON LOW PRICE CALL GIRL SERVICE FULL SATISFACT...💫✅jodhpur 24×7 BEST GENUINE PERSON LOW PRICE CALL GIRL SERVICE FULL SATISFACT...
💫✅jodhpur 24×7 BEST GENUINE PERSON LOW PRICE CALL GIRL SERVICE FULL SATISFACT...
 
Abortion Pills in Oman (+918133066128) Cytotec clinic buy Oman Muscat
Abortion Pills in Oman (+918133066128) Cytotec clinic buy Oman MuscatAbortion Pills in Oman (+918133066128) Cytotec clinic buy Oman Muscat
Abortion Pills in Oman (+918133066128) Cytotec clinic buy Oman Muscat
 
Just Call Vip call girls Nagpur Escorts ☎️8617370543 Starting From 5K to 25K ...
Just Call Vip call girls Nagpur Escorts ☎️8617370543 Starting From 5K to 25K ...Just Call Vip call girls Nagpur Escorts ☎️8617370543 Starting From 5K to 25K ...
Just Call Vip call girls Nagpur Escorts ☎️8617370543 Starting From 5K to 25K ...
 
➥🔝 7737669865 🔝▻ dharamshala Call-girls in Women Seeking Men 🔝dharamshala🔝 ...
➥🔝 7737669865 🔝▻ dharamshala Call-girls in Women Seeking Men  🔝dharamshala🔝  ...➥🔝 7737669865 🔝▻ dharamshala Call-girls in Women Seeking Men  🔝dharamshala🔝  ...
➥🔝 7737669865 🔝▻ dharamshala Call-girls in Women Seeking Men 🔝dharamshala🔝 ...
 
Whitefield Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Ba...
Whitefield Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Ba...Whitefield Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Ba...
Whitefield Call Girls Service: 🍓 7737669865 🍓 High Profile Model Escorts | Ba...
 

Core concepts - mule

  • 1. CORE CONCEPTS - MULE Presented by Sindhu VL
  • 2. Model :  The first logical layer is the model layer. A Mule model represents the run-time environment that hosts services.  It defines the behavior of Mule when processing requests handled by these services.  Consequently, the model that the Mule instance would host would establish a runtime environment optimized for asynchronous processing of messages, as no synchronous reply is expected anywhere in the overall message processing chain.
  • 3. Service :  A Mule service is composed of all the Mule entities involved in processing particular requests in predefined manners.  A service is defined by a specific configuration. This configuration determines the different elements, from the different layers of responsibility, that will be mobilized to process the requests that it'll be open to receive.  Depending on the type of input channel it uses, a service may or may not be publicly accessible outside of the ESB.  For the time it gets handled by a service, a request is associated with a session object.  As its name suggests, this object carries all the necessary context for the pro-cessing of a message while it transits through the service.
  • 4. Transports :  The transport layer is in charge of receiving or sending messages. This is why it's involved with both inbound and outbound communications.  A transport manifests itself in the configuration by the following elements: connectors, endpoints and transformers.
  • 5. Connectors :  A connector is in charge of controlling the usage of a particular protocol.  It's configured with parameters that are specific to this protocol and holds any state that can be shared with the underlying entities in charge of the actual communications.  For example, the FileConnector can read and write file system files.
  • 6. Configuring connectors :  FileConnector  JDBC Connector  HTTP Connector  STDIO Connector  JMS Connector  Proceed to next slide to see the configuration of all the above connectors.
  • 7. FileConnector : The configuration for file connector is as follows: <file:connector name="FileConnector" streaming="false" pollingFrequency="1000"> <file:expression-filename-parser/> </file:connector>
  • 8. JDBC Connector : The configuration for JDBC connector is as follows : <jdbc:connector name="jdbcConnector" dataSource-ref="dataSource“> <jdbc:query key="statsInsert" value="insert into alerts values (0, 344, Sindhu', Vankam')"/> </jdbc:connector>
  • 9. HTTP Connector : The configuration for HTTP connector is as follows : <http:connector name="HttpConnector" proxyHostname="${proxyHostname}" proxyPort=="${proxyPort}" proxyUsername="${proxyUsername}" proxyPassword="${proxyPassword}"/>
  • 10. STDIO Connector : The configuration for STDIO connector is as follows : <stdio:connector name="SystemStreamConnector" promptMessage="Please enter something:" messageDelayTime="1000" />
  • 11. JMS Connector : The configuration for JMS connector is as follows : <jms:activemq-connector name="jmsQueueConnector" specification="1.0.2b" brokerURL="tcp://localhost:61616" />
  • 12. Endpoints :  Inbound and outbound endpoints exist in the context of a particular service and represent the expected entry and exit points for messages, respectively.  These end-points are defined in the inbound and outbound routers.  It's also possible to define an inbound endpoint in a response router.  In that case, the inbound endpoint acts as a response endpoint where asynchronous replies will be consolidated before the service returns its own response.  Global endpoints can be considered abstract entities that get reified only when referenced in the context of a service: as such, they're a convenient way to share common configuration attributes.
  • 13. Transformer :  A transformer optionally changes incoming or outgoing messages in some way.This is usually done to make the message format useable by a downstream function For examples, the ByteArrayToString transformer converts byte arrays into String objects.If we want our own transformers to convert input we can write our own java and we can call from the mule. We can implement custom java transformer by extends AbstractTransformer and AbstractMessageAwareTransformer. AbstractTransformer is a normal Transformer, it will carry only payload in the sense input/result from before execution. AbstractMessageAwareTransformer is a special transformer, It will carry payload, messahe properties of mule and alo details regarding exception.
  • 14. Routers :  Routers play a crucial role in controlling the trajectory a message will follow when it transits in Mule.  They're the gatekeepers of the endpoints of a service. In fact, they act like railroad switches, taking care of keeping messages on the right succession of tracks so they can reach their intended destinations. A router is the object that does something with messages once they have been received by a connector, or prior to being sent out by the connector. pass-through-router: Input will pass as it is to outbound from inbound. Single service will be available. filtering-router: input will pass based on condition it's like filtering input. Multiple Services will be available. chaining-router: Every statement will pick up by procedure functionality, nothing but there is no condition after finishing one service it will go to the next service. Multiple Services will be available. etc...
  • 15. Filter :  A filter optionally filters incoming or outgoing messages that are coming into or going out from a connector.  For example, the File Provider comes with a FilenameWildcardFilter that restricts which files are read by the connector based on file name patterns.  For example only files with the .xml extension can be routed.  Note: writing condition is filtering-router and way of condition is filter. Based on filter, service will be picking up by filtering-router.
  • 16. Components :  Components are usually business objects.  They are components that execute business logic on an incoming event.  Components are standard JavaBeans (containers).  There is no Mule-specific code in components, it is a java class to implement business logic especially.