How to Troubleshoot Apps for the Modern Connected Worker
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