20
Accessing MMC as service( for beginner )

Mmc

Embed Size (px)

Citation preview

Page 1: Mmc

Accessing MMC as service( for beginner )

Page 2: Mmc

Before we start, we will actually look into what MMC really is.

Mule Management Console (MMC) which can be said as centralizes management and monitoring functions for all our Mule ESB Enterprise deployments, no matters whether they are running as standalone instances, as a cluster, or embedded in application servers.

MMC is can be said as an enterprise management and monitoring tool designed specifically for Mule ESB instances.

It provides the comprehensive set of functionality for managing and monitoring running Mule instances, Mule clusters, applications within Mule instances, and the flows within those applications.

Reference :- https://docs.mulesoft.com/mule-management-console/v/3.7/

Page 3: Mmc

How can we access Mule MMC as a service???

Page 4: Mmc

Management Console (MMC) expose REST API that provides a way for us to programmatically access all the functionalities of MMC. The functionalities includes:-

• Create an applications • Register new servers and manage existing servers, including restarting

servers. • Deploy a new version of our application• Delete our application• Getting statistics/details about our application

Page 5: Mmc

Accessing MMC with REST Api

Page 6: Mmc

So, if we start out Mule standalone on premises server and run our mmc , we will find that we can access all the mmc task by accessing the REST api it expose. For example, below you can find the REST api is used to check all the details of the server. For example, if our server is configured on port 8080, we can use the following url to access the details of the server -

You can see, details like deployment, deployment id, application, server details are visible here.

Page 7: Mmc

Using the following api, that includes the deployment id as a parameter, we can view the details of a specific deployment:-

Page 8: Mmc

Now, using following api, we can create an deployble application in our Mule Standalone server, which will be ready for deployment. You can see that we are putting server name and application name in our JSON POST request.

Page 9: Mmc

Now, if we check our Mule mmc, we will found the application is created and ready for deployment.

Page 10: Mmc

Now, using the following api, we can deploy our application on the server using the deployment id as parameter.:-

Page 11: Mmc

If we check back in our mmc, we will find that the api has deployed the application successfully on the server.

Page 12: Mmc

Now, using the following api, we can undeploy our application on the server using the deployment id as parameter.:-

Page 13: Mmc

If we check back in our mmc, we will find that the api has been undeployed from the server.

Page 14: Mmc

Now, using the following api, we can redeploy our application on the server that was undeployed using the deployment id as parameter.:-

Page 15: Mmc

If we can see in mmc portal, the application is redeployed from the undeployed state and running .

Page 16: Mmc

Now, using the following api, we can delete our application on the server completely. Deployment id is required as a parameter in url :-

Page 17: Mmc

If we check our mmc, we will find that the api has been deleted completely from the server. There is no application present.

Page 18: Mmc

Conclusion…..

Page 19: Mmc

So we can see it is very very easy to access the functionality of our Mule mmc on Mule Standalone server using the REST api exposed by it. We can create an application, delete and application, deploy an application, undeploy the application, redeploy it, list the deployed applications, server details/statistics and many more.

So at the end I can only say that, let’s spread our knowledge and expand our Mule community.

Page 20: Mmc

Thank You