Let me first start by saying that I just simply love the name people at Mulesoft decided to have for their product MULE, It is so good and you can have so much pun with it, Thats how I came up with topic for today “Control your Mule”
Time to get serious, Today I will be talking about MMC (Mule Management Console). MMC is enterprise management and monitoring tool designed specifically for Mule ESB instances. MMC provides a comprehensive set of functionality for managing and monitoring running Mule instances, Mule clusters, applications within Mule instances, and the flows within those applications. It also provides ways of looking at specific transactions through pre-defined business events, as well as transactions in flight.
Today I will be showing you how to set-up MMC, In future blogs I will show how to register server to MMC, Deploy/Undeploy applications on MMC, Analysing data and flows in MMC, Creating mule cluster etc.
Setting up MMC
MMC console application comes as a war file which can be deployed in supported application servers. I will be using Tomcat server to deploy the MMC application. I will not be going in details about how to set-up tomcat server.
Once you have Tomcat server ready get the downloded mmc.war file and place it in webapps folder of tomcat server
Once you are done with placing the mmc.war in the webapps folder start the tomcat server
As soon as server is up you can access the MMC console by going to URL http://localhost:8080/mmc/login.jsp here I am assuming your Tomcat server is setup to run on 8080 port, If you want to change the port of your MMC server then you can go to server.xml in conf folder and change the http port of tomcat server.
The default Username is admin and Password is also admin, after you login you will be greeted with a page where you can do many different kind of operations on mule servers.
In the above Image it is visible there are various tabs like, Servers, Deployments, Applications, Flows etc. I will cover them all in my future blogs.
Servers tab is the place where we can add various mule runtime to be managed by MMC along with the process creating the cluster of mule runtime servers.
Add a new Server
Before we go ahead and add a mule runtime to mmc we would need to activate mule agent on mule runtime do this we would need to activate two major properties in wrapper.conf of mule runtime server
# MMC Agent settings
default setting for mule.agent.enabled is false, so make sure to enable it by changing it to true. mule.mmc.bind.port this setting will be used by MMC to connect to mule runtime so do remember to put correct port on your mule runtime server.
After putting the details of mule runtime click on add, MMC will start the communication with the mule runtime and once it is done communicating with mule runtime and you will be able to see the registered server as below.
So with this we have just registered our first server to MMC. In my future blogs I will cover all other topics related to MMC and managing mule runtime servers with Mule Management Console.