Mule ESB - First Tutorial - Setting up Anypoint Studio and Build First project using HTTP, Set Payload and Logger - NESTED CODE || TECH FLOAT

Breaking

Post Top Ad

Post Top Ad

Sunday, 24 June 2018

Mule ESB - First Tutorial - Setting up Anypoint Studio and Build First project using HTTP, Set Payload and Logger

Mule ESB is a lightweight Java-based enterprise service bus (ESB) provided by Mule Soft. It is also an integration platform that allows us to connect different applications quickly, easily and securely to exchange data among applications. It really does not matter what technology is used to develop the applications - it can connect anything, anywhere - including JMS, web services, JDBC, HTTP and many more. Sounds interesting? We will learn how to develop integration stuffs using Mule ESB.



You Tube Promo-



Today we will set up our development environment and create a small project to get started with Mule ESB.

All right, first of all you need to download the anytime platform provided by Mule ESB. Go to MuleSoft site and download the software. Use the below link : https://anypoint.mulesoft.com

It should look link below screen-


Once download is completed you should get a ZIP file as shown in below image - extract the Anypoint studio. Refer the below image -



This is the latest version of Anypoint Studio - trail version for 30 days. However, We (nested code) will use the previews version (6) for the development. You may proceed with the above latest version -any problem? let us know in below comment box.

Now open the extracted folder and double click on the AnypointStudio icon as shown in below image-

You need to select a workspace like below image - it will pop up - hit ok button.


You should get the below screen- (Ignore the left side listed projects)


Now we will create our first project - refer the below screen - click on the Mule Project


Click on Mule Project - you should get the below screen- Edit the project name - "DayOneTutorialHelloNcTeam"


Click on the Finish button-


Lets Take a moment to explain different components - (a) right side you will get all the elements under Mule Palette


(b) Left side project structure - folder structure.


Now we will proceed to create our first project. Search HTTP component from right side Palette and then drag and drop to project dashboard. Refer the below image -


Double click on the HTTP and update as below image -


 Click on the + button to update like below image - click ok button


Update the Path as /welcomenc we will call via GET request. Save the changes.

Now Add another element/component Set Payload and update with message as shown in below image -


Add Logger to  check the logs as shown in below image-


We are all set to Run Project as shown in below image-


Below log should be started-


Lets check the out put. Open browser and hit enter to the URL http://localhost:8081/welcomenc
You should get the result as shown in below image -


Congratulations - you have successfully created the first project. Any problem? let us know in below comment box. If you liked this article - share it, like it and subscribe our blog. Happy Learning!

13 comments:

  1. I really liked your blog article.Really thank you! Really Cool.
    MuleSoft training
    MuleSoft online training

    ReplyDelete
  2. Nice and good article. It is very useful for me to learn and understand easily. Thanks for sharing
    Mule 4 Training
    Best Mulesoft Online Training

    ReplyDelete
  3. nice information thanks for shring............................!
    spring boot certification course training

    ReplyDelete
  4. https://onlineitguru.com/spring-boot-training.html

    ReplyDelete
  5. nice information thanks for sharing...
    https://onlineitguru.com/sql-server-dba-training.html

    ReplyDelete

Post Bottom Ad