Tutorial - Create A - Hello World - Mule App
Tutorial - Create A - Hello World - Mule App
https://docs.mulesoft.com/mule-runtime/latest/mule-app-dev-hellomule 1/12
7/11/24, 12:01 PM Tutorial: Create a "Hello World" Mule app
Prerequisites
After Anypoint Studio is installed, you can set up
and run the example.
https://docs.mulesoft.com/mule-runtime/latest/mule-app-dev-hellomule 2/12
7/11/24, 12:01 PM Tutorial: Create a "Hello World" Mule app
b. Click Finish.
https://docs.mulesoft.com/mule-runtime/latest/mule-app-dev-hellomule 3/12
7/11/24, 12:01 PM Tutorial: Create a "Hello World" Mule app
https://docs.mulesoft.com/mule-runtime/latest/mule-app-dev-hellomule 4/12
7/11/24, 12:01 PM Tutorial: Create a "Hello World" Mule app
https://docs.mulesoft.com/mule-runtime/latest/mule-app-dev-hellomule 5/12
7/11/24, 12:01 PM Tutorial: Create a "Hello World" Mule app
https://docs.mulesoft.com/mule-runtime/latest/mule-app-dev-hellomule 6/12
7/11/24, 12:01 PM Tutorial: Create a "Hello World" Mule app
https://docs.mulesoft.com/mule-runtime/latest/mule-app-dev-hellomule 7/12
7/11/24, 12:01 PM Tutorial: Create a "Hello World" Mule app
attributes.requestPath
https://docs.mulesoft.com/mule-runtime/latest/mule-app-dev-hellomule 8/12
7/11/24, 12:01 PM Tutorial: Create a "Hello World" Mule app
************************************************
**********
* - - + DOMAIN + - - * - - + STATUS +
- - *
************************************************
**********
* default * DEPLOYED
*
************************************************
**********
https://docs.mulesoft.com/mule-runtime/latest/mule-app-dev-hellomule 9/12
7/11/24, 12:01 PM Tutorial: Create a "Hello World" Mule app
************************************************
*******************************
* - - + APPLICATION + - - * - - + DOMAIN
+ - - * - - + STATUS + - - *
************************************************
*******************************
* hellomule * default
* DEPLOYED *
************************************************
*******************************
txt
txt
https://docs.mulesoft.com/mule-runtime/latest/mule-app-dev-hellomule 10/12
7/11/24, 12:01 PM Tutorial: Create a "Hello World" Mule app
https://docs.mulesoft.com/mule-runtime/latest/mule-app-dev-hellomule 11/12
7/11/24, 12:01 PM Tutorial: Create a "Hello World" Mule app
<http:listener-config name="HTTP_Listener_config"
doc:name="HTTP Listener config"
>
<http:listener-connection host="0.0.0.0"
port="8081" />
</http:listener-config>
<flow name="hello-muleFlow" >
<http:listener doc:name="Listener"
config-ref="HTTP_Listener_config"
path="/hellomule"/>
<set-payload value="Hello Mule!"
doc:name="Set Payload"
mimeType="text/plain"/>
<logger level="INFO"
doc:name="Logger"
message="#[attributes.requestPath]"/>
</flow>
XML
https://docs.mulesoft.com/mule-runtime/latest/mule-app-dev-hellomule 12/12