SlideShare a Scribd company logo
1 of 20
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

What's hot

What's hot (18)

For each component in mule
For each component in muleFor each component in mule
For each component in mule
 
Send email attachment using smtp in mule esb
Send email attachment using smtp in mule esbSend email attachment using smtp in mule esb
Send email attachment using smtp in mule esb
 
Mule ESB - Mock Salesforce Interface
Mule ESB - Mock Salesforce InterfaceMule ESB - Mock Salesforce Interface
Mule ESB - Mock Salesforce Interface
 
Deploying and running in mule standalone
Deploying and running in mule standaloneDeploying and running in mule standalone
Deploying and running in mule standalone
 
Introduction to testing mule
Introduction to testing muleIntroduction to testing mule
Introduction to testing mule
 
Choice component in mule
Choice component in mule Choice component in mule
Choice component in mule
 
Integration with Dropbox using Mule ESB
Integration with Dropbox using Mule ESBIntegration with Dropbox using Mule ESB
Integration with Dropbox using Mule ESB
 
Configurare http mule
Configurare http muleConfigurare http mule
Configurare http mule
 
Idempotent filter in mule
Idempotent filter in muleIdempotent filter in mule
Idempotent filter in mule
 
Mule esb
Mule esbMule esb
Mule esb
 
Mule esb :Data Weave
Mule esb :Data WeaveMule esb :Data Weave
Mule esb :Data Weave
 
Using spring task scheduler in java in mule
Using spring task scheduler in java in muleUsing spring task scheduler in java in mule
Using spring task scheduler in java in mule
 
Mule connector for ibm® as400
Mule connector for ibm® as400Mule connector for ibm® as400
Mule connector for ibm® as400
 
Mule integration-application
Mule integration-applicationMule integration-application
Mule integration-application
 
Stored procedure in Mule
Stored procedure in MuleStored procedure in Mule
Stored procedure in Mule
 
Webservice vm in mule
Webservice vm in muleWebservice vm in mule
Webservice vm in mule
 
Using message enricher
Using message enricherUsing message enricher
Using message enricher
 
Idempotent filter in Mule
Idempotent filter in MuleIdempotent filter in Mule
Idempotent filter in Mule
 

Similar to Mule 4 - Hello World

Similar to Mule 4 - Hello World (20)

MuleSoft ESB CSV to XML
MuleSoft ESB CSV to XMLMuleSoft ESB CSV to XML
MuleSoft ESB CSV to XML
 
MuleSoft ESB XML to CSV
MuleSoft ESB XML to CSVMuleSoft ESB XML to CSV
MuleSoft ESB XML to CSV
 
Ahmedabad MuleSoft 3rd Meetup
Ahmedabad MuleSoft 3rd Meetup Ahmedabad MuleSoft 3rd Meetup
Ahmedabad MuleSoft 3rd Meetup
 
Send email attachment using smtp in mule esb
Send email attachment using smtp  in mule esbSend email attachment using smtp  in mule esb
Send email attachment using smtp in mule esb
 
Running mule from java
Running mule from javaRunning mule from java
Running mule from java
 
Send email attachment using smtp in mule esb
Send email attachment using smtp in mule esbSend email attachment using smtp in mule esb
Send email attachment using smtp in mule esb
 
What's New in Mulesoft Anypoint 7.4
What's New in Mulesoft Anypoint 7.4What's New in Mulesoft Anypoint 7.4
What's New in Mulesoft Anypoint 7.4
 
Send email attachment using smtp in mule esb
Send email attachment using smtp  in mule esbSend email attachment using smtp  in mule esb
Send email attachment using smtp in mule esb
 
Send email attachment using smtp in mule esb
Send email attachment using smtp  in mule esbSend email attachment using smtp  in mule esb
Send email attachment using smtp in mule esb
 
Send email attachment using smtp in mule esb
Send email attachment using smtp  in mule esbSend email attachment using smtp  in mule esb
Send email attachment using smtp in mule esb
 
Basic example using until successful component
Basic example using until successful componentBasic example using until successful component
Basic example using until successful component
 
Email using mule
Email using muleEmail using mule
Email using mule
 
Until successful component
Until successful component Until successful component
Until successful component
 
Until successful component in mule
Until successful component in muleUntil successful component in mule
Until successful component in mule
 
Until successful component in mule
Until successful component in muleUntil successful component in mule
Until successful component in mule
 
Meetup hyderabad mule-4.x
Meetup hyderabad mule-4.xMeetup hyderabad mule-4.x
Meetup hyderabad mule-4.x
 
Upgrade OBIEE to 11.1.1.7.1
Upgrade OBIEE to 11.1.1.7.1Upgrade OBIEE to 11.1.1.7.1
Upgrade OBIEE to 11.1.1.7.1
 
File component
File componentFile component
File component
 
Send email attachment using smtp in mule esb
Send email attachment using smtp in mule esbSend email attachment using smtp in mule esb
Send email attachment using smtp in mule esb
 
MuleSoft Meetup Mumbai Mule 4 Presentation Slide
MuleSoft Meetup Mumbai Mule 4 Presentation SlideMuleSoft Meetup Mumbai Mule 4 Presentation Slide
MuleSoft Meetup Mumbai Mule 4 Presentation Slide
 

Recently uploaded

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
Earley Information Science
 

Recently uploaded (20)

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
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
  • 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