DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library

Zones

Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks

Generative AI has transformed nearly every industry. How can you leverage GenAI to improve your productivity and efficiency?

SBOMs are essential to circumventing software supply chain attacks, and they provide visibility into various software components.

Related

  • MuleSoft Integration With RabbitMQ
  • How to Use Mulesoft VM Connector
  • Deep Dive Into JMS Integration Patterns With MuleSoft and JMS Behavior With Anypoint Clustering and Server Groups
  • Implementing and Deploying the Domain Project With MuleSoft

Trending

  • Micro Frontends to Microservices: Orchestrating a Truly End-to-End Architecture
  • Designing Microservices Architecture With a Custom Spring Boot Starter and Auto-Configuration Framework
  • Why Tailwind CSS Can Be Used Instead of Bootstrap CSS
  • Modernizing Apache Spark Applications With GenAI: Migrating From Java to Scala
  1. DZone
  2. Software Design and Architecture
  3. Integration
  4. CloudHub Connector With Mulesoft

CloudHub Connector With Mulesoft

The CloudHub Connector provides operations like starting, stopping, deploying, and updating Mule apps, as well as sending notifications from your Mule app to CloudHub.

By 
Jitendra Bafna user avatar
Jitendra Bafna
DZone Core CORE ·
Apr. 10, 17 · Tutorial
Likes (6)
Comment
Save
Tweet
Share
11.1K Views

Join the DZone community and get the full member experience.

Join For Free

The CloudHub Connector provides the ability to interact with CloudHub from within your Mule application. It provides various operations like starting, stopping, deploying, and updating Mule applications, as well as sending notifications from your Mule application to CloudHub.

For more details on CloudHub, please go through one of my articles, The Power of Anypoint CloudHub With Mulesoft.

Install the CloudHub connector from Anypoint Exchange. You can connect to exchange from Anypoint Studio and search for the CloudHub Connector. Click Install and to install the CloudHub Connector in your studio.

Image title

Once the Connector is installed, it will restart Anypoint Studio.

Now we will walk through how to implement the CloudHub connector in your Mule application.

Create Notification

Place the HTTP listener into the canvas and click to open the Properties console.

Click the green + and configure as follows:

  • Host: localhost.

  • Port: 8081.

  • Method: POST.

  • Path: cloudhub.  

Image title

Drag and drop the CloudHub Connector in message processor region and configure it. Click the green + button near Connector Configuration. It will open a popup window for you. Select CloudHub: Basic Auth Authentication and clickOK.

Image title

Provide the username and password for your Anypoint platform account and Test Connection. Then, click OK.

Image title

Select Operation from the drop-down and select Create Notification. You need to provide Domain, Message, and Priority.

Field Description
Domain

The domain you set for your application when you first created it.

Message

The message you want your notification to show (i.e., "Hello, World"). In the example below, the notification will simply display a message payload.

Priority

The type of notification. Selecting INFO will display an informative message; selecting ERROR will display a red alert message.

Image title

This operation in the CloudHub Connector creates a notification message for the domain that the application is currently running on.

List Application

Now, we will change the Operation to List application. This operation will return a list of the applications deployed to CloudHub with various details like status, worker size, number of workers, application name, worker type, etc.

Image title

Image title

Update Application

The Update application operation is used to update Mule version, worker size, and the number of workers. You can update Auto Restart Monitoring, Multitenanted, Persistent Queues, and Vpn Enabled. 

Image title

Retrieve Application Logs

The operation Retrieve application logs will read the logs of your application like error, warn, information, etc. You can read the log for a specific period of time. It will provide the log depending on your configuration.

Image title

There are many more operations that you can perform using the CloudHub Connector, including:

  • Create, update, delete, and deploy Mule applications.

  • Get applications details.

  • List application.

  • Get, list, and create notifications.

  • Retrieve applications logs.

  • Create, get, update, and delete tenants.

Now, you know what about the different operations that can be performed using CloudHub Connector!

Connector (mathematics) application MuleSoft

Opinions expressed by DZone contributors are their own.

Related

  • MuleSoft Integration With RabbitMQ
  • How to Use Mulesoft VM Connector
  • Deep Dive Into JMS Integration Patterns With MuleSoft and JMS Behavior With Anypoint Clustering and Server Groups
  • Implementing and Deploying the Domain Project With MuleSoft

Partner Resources

×

Comments

The likes didn't load as expected. Please refresh the page and try again.

ABOUT US

  • About DZone
  • Support and feedback
  • Community research
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Core Program
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 100
  • Nashville, TN 37211
  • [email protected]

Let's be friends: