Mule3 Studio - Step by step instruction to write HelloWorld program in Mule3

Below are step-by-step instructions to write HelloWorld in Mule3 using Mule Studio. Mule Studio is the IDE built on top of Eclipse. So it has all the capabilities of Eclipse. Apart from that it has Mule server integrated within it. So we don't need to download Mule server separately.

Prerequisite - 

Instructions

Step 1 - Open Mule Studio by clicking on MuleStudio.exe inside Mule Studio folder. By default, it will open Mule perspective in studio.
Step 2 - Right click on package explorer window and click on New --> Mule Project 


Step 3 - Enter project name as Hello_World as shown in below screenshot. Click on next once done.


Step 4 - Mule Studio will automatically put file name as Hello_world.mflow. We can leave it as it is. Click on Finish button.


Step 5 - You should be able to see Hello_World project created Mule Studio as show below


Step 6 - Double click on Hello_World.mflow file. You should be able to see endpoints appearing in the right hand side. Drag Http end point on message flow window.You should be seeing endpoint as shown below.


Step 7 - Since we have added http endpoint, now we are going to add echo component which is default available in Mule Studio. This component will spit output on the console.


Step 8 - Click on Configuration XML tab to see the configuration. We can change the port from 8081 to another port like 8086. Click on Save button once port is changed.


Step 9 - Run the Hello World application using Hello_World.mflow-->Run As -->Mule Application 


If everything goes fine, then you should be able to see the Hello World application running successfully in the console.

Step 10 - Open the Hello World application in web browser of your choice using url http://localhost:8086/name=surender



In case you want to run this application in mule standalone server instead of mule studio, you can do that. You can export Hello World application to make a deployable archive file by right clicking on Hello_World project and then exporting it to mule archive file.


This archive file can be copied into apps directory of mule server directory. If mule server is already started, it will start hot deployment of Hello_World application. Else, start mule server by clicking on mule.bat file.

Installation can be verified by opening the url (http://localhost:8086/name=surender) in browser. It should echo the name on browser.

Comments

  1. MGM Resorts Launches Live Casino and Resort in Las
    MGM 논산 출장마사지 Resorts, the parent 경주 출장마사지 company 전라북도 출장안마 of the 평택 출장마사지 Las Vegas-style hotel and casino, is launching a new partnership with the 하남 출장샵 operator,

    ReplyDelete

Post a Comment

Popular posts from this blog

Brief guide to ecommerce

CQ - How to set replication automatically from Author instance to publisher instance

New age career opportunities in Information Technology after graduation