- MuleSoft - Discussion
- MuleSoft - Useful Resources
- MuleSoft - Quick Guide
- MuleSoft - Testing with MUnit
- MuleSoft - Mule exception Handling
- MuleSoft - Mule Error Handling
- Web Services Using Anypoint Studio
- Flow Control and Transformers
- MuleSoft - Endpoints
- Core Components & Their Configuration
- Message Processor & Script Components
- MuleSoft - DataWeave Language
- Creating First Mule Application
- MuleSoft - Discovering Anypoint Studio
- MuleSoft - Anypoint Studio
- MuleSoft - Mule in Our Machine
- MuleSoft - The Mule Project
- MuleSoft - Introduction to Mule ESB
- MuleSoft - Home
Selected Reading
- Who is Who
- Computer Glossary
- HR Interview Questions
- Effective Resume Writing
- Questions and Answers
- UPSC IAS Exams Notes
MuleSoft - Creating First Mule Apppcation
In this chapter we are going to create our first Mule apppcation in MuleSoft’s Anypoint Studio. For creating it, first we need to launch Anypoint Studio.
Launching Anypoint Studio
Cpck on Anypoint Studio to launch it. If you are launching it for first time, then you will see the following window −
User Interface of Anypoint Studio
Once you Cpck on the Go to Workspace button, it will lead you to the user interface of Anypoint Studio as follows −
Steps for Creating Mule Apppcation
In order to create your Mule apppcation, follow the below steps −
Creating New Project
The very first step for creating Mule apppcation is to create a new project. It can be done by following the path FILE → NEW → Mule Project as shown below −
Naming the Project
After cpcking on the new Mule Project, as described above, it will open a new window asking for the project name and other specifications. Give the name of the Project, ‘TestAPP1’ and then cpck on the finish button.
Once you cpck on the Finish Button, it will open the workspace built for your MuleProject namely ‘TestAPP1’. You can see all the Editors and Views described in the previous chapter.
Configuring the Connector
Here, we are going to build a simple Mule apppcation for HTTP Listener. For this, we need to drag the HTTP Listener connector from Mule Palette and drop it to the workspace as shown below −
Now, we need to configure it. Cpck on the green color + sign after Connector configuration under Basic Settings as shown above.
On cpcking ok, it will take you back on HTTP Listener property page. Now we need to provide the path under General Tab. In this particular example, we have provided /FirstAPP as path name.
Configuring Set Payload Connector
Now, we need to take a Set Payload connector. We also need to give its value under Settings tab as follows −
This is my first Mule Apppcation, is the name provided in this example.
Running Mule Apppcation
Now, save it and cpck Run as Mule Apppcation as shown below −
We can check it under Console which deploys the apppcation as follows −
It shows that you have successfully built your first Mule Apppcation.
Verifying Mule Apppcation
Now, we need to test whether our app is running or not. Go to POSTMAN, a Chrome app and enter the Url: http:/localhost:8081. It shows the message we have provided while building Mule apppcation as shown below −
Advertisements