DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports Events Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones AWS Cloud
by AWS Developer Relations
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones
AWS Cloud
by AWS Developer Relations
The Latest "Software Integration: The Intersection of APIs, Microservices, and Cloud-Based Systems" Trend Report
Get the report
  1. DZone
  2. Software Design and Architecture
  3. Integration
  4. Mule 4: Hello World

Mule 4: Hello World

Let's take a look at a tutorial for beginners on Hello World in Mule. Also look at images and explanations for each step.

Ram Chennupati user avatar by
Ram Chennupati
·
Aug. 11, 18 · Tutorial
Like (5)
Save
Tweet
Share
15.76K Views

Join the DZone community and get the full member experience.

Join For Free

Introduction

Many people are interested in learning Mule programming by themselves. When we are ready to start, it's always better to understand the basics and feel comfortable with the Anypoint Studio IDE and build and run the program with the basic components. Perhaps many of you have written hello world programs. Still, I believe giving basic details is always helpful to the MuleSoft community. I hope beginners will find this useful.

1. Create a new project as shown in the below screenshot. Right click on the left pane of Project Explorer and click on the MuleProject.

Image title

2. After clicking on the MuleProject, the below screen will be shown. Please make sure all the red circled sections are filled up.

Image title

3. Next, go through the folders created in the left pane. src/main/mule, src/main/java, src/main/resources,  src/test/java, src/test/munit, /src/test/resources,  and other folders are added to the project. 

Click on the helloworld1.xml file. on the right-hand side. You will notice a Mule Palette in which you will be able to view the components provided by MuleSoft.

Image title

4. Drag and drop the Listener component, Set Payload components. After that, click on the "+" icon in "Listener"  properties.

HelloWorld

5. Next, fill up the Host and Port fields as shown in the below screen.

Image title

6. Next, click on "Set Payload." After that, you can view the properties section as mentioned in the below screen. Fill up the details as shown:

Image title

7. Right click on the project window and run the project.

Image title

8. Verify the XML equivalent code of the project.

Image title

9. Run the localhost:8087 in the browser.

Image title


Conclusion

As it is a basic hello world program, you can start modifying the content of the Set Payload component and run the program once again. 

Payload (computing) Property (programming) MuleSoft Host (Unix) Icon IT Drops (app) Build (game engine)

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • Testing Level Dynamics: Achieving Confidence From Testing
  • What Is JavaScript Slice? Practical Examples and Guide
  • Distributed Tracing: A Full Guide
  • Create a CLI Chatbot With the ChatGPT API and Node.js

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends: