In my previous blog I showed how to setup MMC (Mule Management Console) to do management of your mule runtime servers. In continuation of it, Today I will be showing how to Deploy a mule application using MMC to mule runtime.

To show this I have created a demo application in Anypoint studio named sample-mmc-demo and created a sample demo flow in it which will set a static payload “This is response coming from project deployed on Mule Through MMC” to the request received on the URL http://localhost:8081/demo

Image title

Now we should create a exported project zip file that we will be using to deploy through mmc to mule runtime, To export the project zip file right click on project and click on export.

Image title

On click of export we are prompted to select what kind of format we want to export. Choose “Anypoint Studio Project to Mule Deployable Archive (includes Studio metadata)”

Image title

On click of Next we are prompted for where we want to save the exported file select any location that could also be accessed by mmc application deployed on tomcat server.

Image title

Now we are ready with the exported project zip file to be deployed on mule runtime using mmc, We switch to mmc now and click on deployments tab of the mmc application, we will be using this tab to manage our deployments on the registered mule runtime through mmc.

Image title

Click on the New and give details of your deploymet application and select the server you want to deploy application and upload the zip file.

Image title

Deployment Name : It’s the name for your deployment, We should have meaningfull names to our deployments so as to make sense of all the various deployed applications because if we have many applications deployed it can become out of control pretty soon and can become difficult to manage.

Applications : This is where we will be uploading the zip file that we created earlier.

Image title

Servers : The name of server where we want to deploy our application, If we have many servers registered on you mmc, we can very easily do a search of server using the search/dropdown by writing the name of server.

Image title

Save or Deploy : There are two buttons available, they both do their task as per they are named. SAVE will save your application on mmc and hold the application for future deployment at later point of time. DEPLOY will save and start the deployment as soon as we click deploy.

Image title

Testing the deploy application

We can go the the URL as I mentioned earlier and thet the application deployed on mule runtime.

Image title

With this we come to and end of deploying application to mule runtime, I will continue to write about more things we can do with mmc in my future blogs. Do let me know your thoughts about this blog.

Advertisements