Skip to main content

Deploy Your Integration in Anypoint Platform

It’s time to get this integration going. For this project, we provide you with a completed Mule application. Click here to download the completed solution.

You now have a Java Archive (JAR) file downloaded. JAR files are used to distribute Java applications, libraries, and extensions. Although you build Mule applications using a graphical user interface, they’re Java applications. But you don’t need to know Java to build Mule applications.

Recall our use case that you want to insert lead records into Salesforce from Amazon DynamoDB. Our solution is to provide an endpoint to bring all the records from the DynamoDB leads table into Salesforce using the DynamoDB Scan operation. So what does our solution look like? Let’s take a peek inside the JAR file. 

Mule applications are built in a flow where components call other components. In the following flow screenshot of the solution, we start on the left-hand side with the trigger event. In this case, it’s an HTTP request. The HTTP Listener component starts receiving requests after you’ve deployed your app. The endpoint is automatically generated for you and is in the form: https://yourapp.cloudhub.io

When MuleSoft detects a new request, it performs a Scan operation on a DynamoDB table. A Scan operation requests all records from a table. The records received are then passed to the Transform Message component. Transform Message prepares the data for the next component, which is the Create Salesforce record component to the right. 

MuleSoft app showing a flow containing four components: an HTTP Listener connector, a DynamoDB Scan connector, a Transform Message connector, and a Create Salesforce connector.

Note

To see the Mule application for yourself, check out the instructions in the Take It Further section.

How does the application get your Salesforce and optional DynamoDB credentials? You provide that information in Runtime Manager, which is a part of Anypoint Platform. 

Let’s Get Hands-on with Anypoint Runtime Manager 

Anypoint Runtime Manager provides a unified view of your applications, servers, and APIs. With Runtime Manager you deploy, manage, and monitor your Mule applications in a sandbox, staging, or production environment from one central location, whether your apps are deployed in the cloud or on-premises.

  1. If you’re not already logged in to Anypoint Platform, go to the Challenge section at the bottom of this page and click Launch.
  2. Next, on the Anypoint Platform splash screen, click Runtime Manager.
    The Anypoint Platform splash screen with a box around Runtime Manager.
  3. Click Sandbox to choose your environment. 
    Note: If you’re logging into an existing account, confirm the Sandbox environment is selected.
  4. Click Deploy application. The screen that appears allows you to provide a unique name for your application, select a location to host your application, upload the solution JAR file you downloaded, and provide your credentials to the Mule app.
    Deploy application screen in Runtime Manager showing sandbox environment and Deploy application button.
  5. Complete the fields in the Deploy Application section.
    • Application Name: Name your application using the following formula: db2sf-myname-todaysdate Like this: db2sf-lindarosenberg-aug30
      Note: The application name must begin with db2sf and be unique across all MuleSoft apps.
    • Deployment Target: Leave default values.
    • Application File: Choose JAR file you downloaded.
  6. Click the Properties tab. You need the credentials you captured in step 2 of this project to complete this part.
  7. Enter the following field names and corresponding values.
    Note: If you don’t have DynamoDB credentials, that’s OK. You’ll just complete the Salesforce username and password fields. You can only add a new field after you’ve provided a value for the current field.
    • salesforce.username = Trailhead Playground username
    • salesforce.password = Trailhead Playground password
    • dynamodb.accesskey = Access key obtained from AWS IAM
      Note: Don’t use if you haven’t set up DynamoDB.
    • dynamodb.secretkey = Secret key obtained from AWS IAM 
      Note: Don’t use if you haven’t set up DynamoDB.
      Deploy Application options in Runtime Manager including Application Name, Deployment Target, and Application File.
      Properties tab in Runtime Manager.For the password and secretkey, click Protect after entering the value. Don’t click Protect for the username field because it is used to check your work in this project.

      Note: If you don’t see the Protect button, turn off your ad-blocker. As a best practice, you should also protect usernames in real-life scenarios. Never share your credentials with anyone. Protected values can’t be viewed or retrieved by any user. This action can’t be undone, but you can replace or delete the value. 
  8. Click Deploy Application.
    After you deploy your application, which takes 2–3 minutes, it’s hosted in CloudHub 2.0. CloudHub 2.0 is a fully managed, containerized, managed cloud service, where you can deploy and run MuleSoft applications.
  9. Click Applications and then click the name of your application.

Your application is ready when its status is set to Running. It is automatically provided with a secure endpoint.

Application status of Running in Runtime Manager.

After you’ve completed the previous steps, click Verify Step to check your work.

Take It Further

It’s not required to complete this project, but if you’re interested in looking inside the solution JAR file, download Anypoint Code Builder for Desktop, select View > Command Palette…, select MuleSoft: Import a Project, Mule Project Type, select the downloaded JAR file, and select the folder where you would like to store the project. 

Alternatively, use the Anypoint Studio desktop IDE. Upload the JAR file using File > Import and select Packaged mule application(.jar).

Keep learning for
free!
Sign up for an account to continue.
What’s in it for you?
  • Get personalized recommendations for your career goals
  • Practice your skills with hands-on challenges and quizzes
  • Track and share your progress with employers
  • Connect to mentorship and career opportunities