This is a series of blogs aimed at developers new to Mule that are just getting started. These lessons will introduce common concepts and implement frequent use case that we see in our community. If you have suggestions for a lesson, please post it in the comments.
The lessons are all based on Mule Studio, the free Eclipse IDE for Mule, you can get the latest version here.
Download Mule with Mule Studio
Once downloaded, unzip/extract the archive. Launch Mule IDE using <MULE_STUDIO_HOME>/mulestudio.
You’ll see this empty environment, we need to create a project.
Once in Mule Studio, create a new Mule project using File -> New -> Mule Project. Enter “LearningMule” as project name, “hello” for message flow name, leave default values in “create a java project” screen and click on Finish. You can now see necessary project source and configuration files generated.
You’ll be asked to create a new Flow when you create a Mule project.
This is the canvas view,this is where we create Mule Flows. It is currently empty.
If not already selected, double click on “hello.mflow” to open hello mule flow in design mode.
Select HTTP end point from the component palette on the right side and drop it on to the message flow. Double click on HTTP end point and enter “hello” in path field.
This is the HTTP endpoint configuration dialog, every canvas item will have one of these dialogs.
The HTTP inbound endpoint generated, internally uses embedded Jetty server to read from HTTP request and pass the details on the Hello Mule flow. Click on “Configuration XML” tab to see the generated source.
Drag and drop “Echo” component, next to “HTTP” end point, from component palette to display information received from HTTP request. Right click on hello.mflow and select Run As -> Mule Application. Once you see success message in the console – “started app ‘learningmule’”, invoke hello.mflow using . Response “/hello” can be seen in the browser.
Congratulations! You just completed your first lesson. You must now be familiar with installing Mule Studio, creating Mule projects, building and running Mule flows.