How to do the Mule Hello World Example [Less than 5 minutes]

This is very simple and this post is very straight to the point.

1) Create a new mule project.
2) In your message flow, you want these elements:

- HTTP
- Set Payload
- Logger

Image: Mule Hello World Required Components

3) HTTP configuration:

Add (+) a new HTTP Listener with these settings:

Port = 8081

Image: HTTP Listener Configuration

HTTP configuration:

Path = /hello

Image: HTTP Configuration

4) Set Payload configuration

Settings - Value: #[‘Hello World’]

Image: Payload

5) Run the Mule Project by clicking on the green Run button
6) In a web browser go to ‘http://localhost:8081/hello’ and you should see ‘Hello World’

Image: Hello World

Comments