Mule 4 - Beta
Hello World
RAMANAN T D
Mule ESB – An ESB for the Modern Enterprise
Mule ESB – An ESB for the Modern Enterprise
 Open Anypointstudio 7.0
 Create New Mule Project
 Give Project Name as Hello World
Mule 4 – Hello World
1
Mule ESB – An ESB for the Modern Enterprise
Mule 4 – Hello World
2
Mule ESB – An ESB for the Modern Enterprise
 You can see the Mule runtime as Mule Server 4.0.0 EE
 Click next and Finish
Mule 4 – Hello World
3
Mule ESB – An ESB for the Modern Enterprise
Mule 4 – Hello World
4
Mule ESB – An ESB for the Modern Enterprise
 Now you can see the Mule Palette
 Drag and Drop the HTPP Listener
Mule 4 – Hello World
5
Mule ESB – An ESB for the Modern Enterprise
Mule 4 – Hello World
6
Mule ESB – An ESB for the Modern Enterprise
Difference between Mule HTTP Earlier Version and Version 4.0
Mule 4 – Hello World
7
Mule ESB – An ESB for the Modern Enterprise
 Enter Host as 0.0.0.0 and port as 8081
 Click Test Connection
 If Test Connection Successful Configure path as /helloworld
Mule 4 – Hello World
8
Mule ESB – An ESB for the Modern Enterprise
Mule 4 – Hello World
9
Mule ESB – An ESB for the Modern Enterprise
Mule 4 – Hello World
10
Mule ESB – An ESB for the Modern Enterprise
 Drag and drop Logger from the Mule Palette
 Enter message for the Logger as
“Request Received Successfully”
Mule 4 – Hello World
11
Mule ESB – An ESB for the Modern Enterprise
Mule 4 – Hello World
12
Mule ESB – An ESB for the Modern Enterprise
 In Mule 4 Http Listener connector have new option to
configure the response in the Listener itself
 You no need another connector to write the response
 By default it is a payload
 Clear the response body and enter simple message as
“Hello World Response”
Mule 4 – Hello World
13
Mule ESB – An ESB for the Modern Enterprise
Mule 4 – Hello World
14
Mule ESB – An ESB for the Modern Enterprise
<?xml version="1.0" encoding="UTF-8"?>
<mule xmlns:http="http://www.mulesoft.org/schema/mule/http" xmlns="http://www.mulesoft.org/schema/mule/core"
xmlns:doc="http://www.mulesoft.org/schema/mule/documentation"
xmlns:spring="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-current.xsd
http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/current/mule.xsd
http://www.mulesoft.org/schema/mule/http http://www.mulesoft.org/schema/mule/http/current/mule-http.xsd">
<http:listener-config name="HTTP_Listener_config" doc:name="HTTP Listener config" doc:id="4617c508-a161-496a-a433-e1b2584cfea7" >
<http:listener-connection host="0.0.0.0" port="8081" />
</http:listener-config>
<flow name="helloworldFlow" doc:id="62e0e6d2-cb17-4c3e-a26d-c743fcbad1d6" >
<http:listener config-ref="HTTP_Listener_config" path="/helloworld" doc:name="Listener" doc:id="91d1edae-7b75-4508-b35c-07ddfb55dd48" >
<http:response >
<http:body ><![CDATA[Hello World Response]]></http:body>
</http:response>
</http:listener>
<logger level="INFO" doc:name="Logger" doc:id="c83a6170-8a21-4e3f-b496-563a69345669" />
</flow>
</mule>
Mule 4 – Hello World
15
Mule ESB – An ESB for the Modern Enterprise
 Save and run the mule project
 Open the postman, enter url and click send
Mule 4 – Hello World
16
Mule ESB – An ESB for the Modern Enterprise
Mule 4 – Hello World
17
Mule ESB – An ESB for the Modern Enterprise
 You can see the success message in post man and logger
message in console
Mule 4 – Hello World
18
Mule ESB – An ESB for the Modern Enterprise
Mule 4 – Hello World
19

More Related Content

PDF
Mule Idempotent Filter - Part II
PDF
Mule Idempotent Filter - Part I
PPTX
Mule esb add logger to existing flow
PPTX
Running mule standalone
PPT
Anypoint connectorfor ibm as 400
PPTX
Deploying and running mule standalone
PPTX
Deploying and Running in Mule
PPTX
Filter expression in mule
Mule Idempotent Filter - Part II
Mule Idempotent Filter - Part I
Mule esb add logger to existing flow
Running mule standalone
Anypoint connectorfor ibm as 400
Deploying and running mule standalone
Deploying and Running in Mule
Filter expression in mule

What's hot (18)

PPTX
For each component in mule
PPTX
Send email attachment using smtp in mule esb
PPTX
Mule ESB - Mock Salesforce Interface
PPTX
Deploying and running in mule standalone
PPTX
Introduction to testing mule
PPTX
Choice component in mule
PPTX
Integration with Dropbox using Mule ESB
PPTX
Configurare http mule
PPTX
Idempotent filter in mule
PPTX
Mule esb
PPTX
Mule esb :Data Weave
PPTX
Using spring task scheduler in java in mule
PPT
Mule connector for ibm® as400
PPTX
Mule integration-application
PPTX
Stored procedure in Mule
PPTX
Webservice vm in mule
PPTX
Using message enricher
PPTX
Idempotent filter in Mule
 
For each component in mule
Send email attachment using smtp in mule esb
Mule ESB - Mock Salesforce Interface
Deploying and running in mule standalone
Introduction to testing mule
Choice component in mule
Integration with Dropbox using Mule ESB
Configurare http mule
Idempotent filter in mule
Mule esb
Mule esb :Data Weave
Using spring task scheduler in java in mule
Mule connector for ibm® as400
Mule integration-application
Stored procedure in Mule
Webservice vm in mule
Using message enricher
Idempotent filter in Mule
 
Ad

Similar to Mule 4 - Hello World (20)

PPTX
Mule esb httpflow
PPTX
Mule esb lesson 1
PPTX
Simple interact between http and java components
PDF
Mule esb and_relevant_components
PDF
Top 50 MuleSoft interview questions
PDF
Mule ESB Interview or Certification questions
PPTX
Mule esb lesson 2
PPTX
Mule esb first http connector
PPTX
Mule esb first http connector
PPTX
Mule ESB - An Enterprise Service Bus
PPTX
Mule esb
PPT
Mule - HTTP Listener
PDF
Anypoint Connector DevKit - Part I
PPTX
Custom MuleSoft connector using Java SDK
PPTX
Input and output flow using http and java component
PPTX
What is Mule ESB
PPTX
Mule esb
PPTX
Rest web services
PPTX
Brisbane MuleSoft Meetup 2023-03-22 - Anypoint Code Builder and Splunk Loggin...
Mule esb httpflow
Mule esb lesson 1
Simple interact between http and java components
Mule esb and_relevant_components
Top 50 MuleSoft interview questions
Mule ESB Interview or Certification questions
Mule esb lesson 2
Mule esb first http connector
Mule esb first http connector
Mule ESB - An Enterprise Service Bus
Mule esb
Mule - HTTP Listener
Anypoint Connector DevKit - Part I
Custom MuleSoft connector using Java SDK
Input and output flow using http and java component
What is Mule ESB
Mule esb
Rest web services
Brisbane MuleSoft Meetup 2023-03-22 - Anypoint Code Builder and Splunk Loggin...
Ad

Recently uploaded (20)

PPTX
The various Industrial Revolutions .pptx
PDF
Taming the Chaos: How to Turn Unstructured Data into Decisions
PDF
Assigned Numbers - 2025 - Bluetooth® Document
PDF
Unlock new opportunities with location data.pdf
PPT
Module 1.ppt Iot fundamentals and Architecture
PPTX
O2C Customer Invoices to Receipt V15A.pptx
PDF
STKI Israel Market Study 2025 version august
PDF
CloudStack 4.21: First Look Webinar slides
PDF
Hybrid model detection and classification of lung cancer
PDF
WOOl fibre morphology and structure.pdf for textiles
PDF
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
PDF
DP Operators-handbook-extract for the Mautical Institute
PPTX
Final SEM Unit 1 for mit wpu at pune .pptx
PPT
Geologic Time for studying geology for geologist
PPTX
Benefits of Physical activity for teenagers.pptx
PDF
Getting Started with Data Integration: FME Form 101
PDF
August Patch Tuesday
PDF
Architecture types and enterprise applications.pdf
PPTX
MicrosoftCybserSecurityReferenceArchitecture-April-2025.pptx
PDF
DASA ADMISSION 2024_FirstRound_FirstRank_LastRank.pdf
The various Industrial Revolutions .pptx
Taming the Chaos: How to Turn Unstructured Data into Decisions
Assigned Numbers - 2025 - Bluetooth® Document
Unlock new opportunities with location data.pdf
Module 1.ppt Iot fundamentals and Architecture
O2C Customer Invoices to Receipt V15A.pptx
STKI Israel Market Study 2025 version august
CloudStack 4.21: First Look Webinar slides
Hybrid model detection and classification of lung cancer
WOOl fibre morphology and structure.pdf for textiles
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
DP Operators-handbook-extract for the Mautical Institute
Final SEM Unit 1 for mit wpu at pune .pptx
Geologic Time for studying geology for geologist
Benefits of Physical activity for teenagers.pptx
Getting Started with Data Integration: FME Form 101
August Patch Tuesday
Architecture types and enterprise applications.pdf
MicrosoftCybserSecurityReferenceArchitecture-April-2025.pptx
DASA ADMISSION 2024_FirstRound_FirstRank_LastRank.pdf

Mule 4 - Hello World

  • 1. Mule 4 - Beta Hello World RAMANAN T D Mule ESB – An ESB for the Modern Enterprise
  • 2. Mule ESB – An ESB for the Modern Enterprise  Open Anypointstudio 7.0  Create New Mule Project  Give Project Name as Hello World Mule 4 – Hello World 1
  • 3. Mule ESB – An ESB for the Modern Enterprise Mule 4 – Hello World 2
  • 4. Mule ESB – An ESB for the Modern Enterprise  You can see the Mule runtime as Mule Server 4.0.0 EE  Click next and Finish Mule 4 – Hello World 3
  • 5. Mule ESB – An ESB for the Modern Enterprise Mule 4 – Hello World 4
  • 6. Mule ESB – An ESB for the Modern Enterprise  Now you can see the Mule Palette  Drag and Drop the HTPP Listener Mule 4 – Hello World 5
  • 7. Mule ESB – An ESB for the Modern Enterprise Mule 4 – Hello World 6
  • 8. Mule ESB – An ESB for the Modern Enterprise Difference between Mule HTTP Earlier Version and Version 4.0 Mule 4 – Hello World 7
  • 9. Mule ESB – An ESB for the Modern Enterprise  Enter Host as 0.0.0.0 and port as 8081  Click Test Connection  If Test Connection Successful Configure path as /helloworld Mule 4 – Hello World 8
  • 10. Mule ESB – An ESB for the Modern Enterprise Mule 4 – Hello World 9
  • 11. Mule ESB – An ESB for the Modern Enterprise Mule 4 – Hello World 10
  • 12. Mule ESB – An ESB for the Modern Enterprise  Drag and drop Logger from the Mule Palette  Enter message for the Logger as “Request Received Successfully” Mule 4 – Hello World 11
  • 13. Mule ESB – An ESB for the Modern Enterprise Mule 4 – Hello World 12
  • 14. Mule ESB – An ESB for the Modern Enterprise  In Mule 4 Http Listener connector have new option to configure the response in the Listener itself  You no need another connector to write the response  By default it is a payload  Clear the response body and enter simple message as “Hello World Response” Mule 4 – Hello World 13
  • 15. Mule ESB – An ESB for the Modern Enterprise Mule 4 – Hello World 14
  • 16. Mule ESB – An ESB for the Modern Enterprise <?xml version="1.0" encoding="UTF-8"?> <mule xmlns:http="http://www.mulesoft.org/schema/mule/http" xmlns="http://www.mulesoft.org/schema/mule/core" xmlns:doc="http://www.mulesoft.org/schema/mule/documentation" xmlns:spring="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-current.xsd http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/current/mule.xsd http://www.mulesoft.org/schema/mule/http http://www.mulesoft.org/schema/mule/http/current/mule-http.xsd"> <http:listener-config name="HTTP_Listener_config" doc:name="HTTP Listener config" doc:id="4617c508-a161-496a-a433-e1b2584cfea7" > <http:listener-connection host="0.0.0.0" port="8081" /> </http:listener-config> <flow name="helloworldFlow" doc:id="62e0e6d2-cb17-4c3e-a26d-c743fcbad1d6" > <http:listener config-ref="HTTP_Listener_config" path="/helloworld" doc:name="Listener" doc:id="91d1edae-7b75-4508-b35c-07ddfb55dd48" > <http:response > <http:body ><![CDATA[Hello World Response]]></http:body> </http:response> </http:listener> <logger level="INFO" doc:name="Logger" doc:id="c83a6170-8a21-4e3f-b496-563a69345669" /> </flow> </mule> Mule 4 – Hello World 15
  • 17. Mule ESB – An ESB for the Modern Enterprise  Save and run the mule project  Open the postman, enter url and click send Mule 4 – Hello World 16
  • 18. Mule ESB – An ESB for the Modern Enterprise Mule 4 – Hello World 17
  • 19. Mule ESB – An ESB for the Modern Enterprise  You can see the success message in post man and logger message in console Mule 4 – Hello World 18
  • 20. Mule ESB – An ESB for the Modern Enterprise Mule 4 – Hello World 19