After modeling, then configuring your Mule Studio application, only two steps remain to put your application to work: debugging, then deploying.
As an Eclipse plugin, Mule Studio incorporates all Eclipse debugging features. Studio’s Debug perspective lets you control the execution of your application by setting breakpoints, suspending launched applicaitons, stepping through your code, or examining the contents of variables.
Refer to see the Eclipse documentation for more information debugging your application.
You can deploy an application developed in Mule Studio in four ways:
Run your application locally, on the Mule server embedded in Studio, to test it. The embedded Mule test server bundled with the Community Edition runs for 12 hours before it must be restarted.
When you specify Run as a Mule Application, Studio automatically builds and deploys your application to the internal Mule server, which starts automatically, if necessary.
Export the Studio application to a zip file, then run it on a Mule Enterprise server. This approach is ideal for Mule servers in production environments. | The zip file contains all the resources (such as code libraries and application metadata) necessary to run the application, and import it into Studio again for further development.
Deploying a Studio-built application in production on an Mule Enterprise server involves three steps:
Studio lets you save a project as a Mule Deployable Archive (i.e. zip file). Such a packaged Mule archive provides a convenient method for transferring files between editions of Studio or backing up Studio projects. The package includes all information specific to your application(s), including flows, configuration files, Java classes, referenced HTML files, and more.
Start Mule.
apps
folder. Mule polls the apps
folder every 5 seconds; it picks up the application you copied to the apps
folder, then extracts and deploys it automatically. In the command line, Mule notifies you that it has deployed the application.
********************************************************************** * - - + APPLICATION + - - * - - + STATUS + - - * ********************************************************************** * my_first_application * DEPLOYED * * mmc * DEPLOYED * * default * DEPLOYED * * 00_mmc-agent * DEPLOYED * ********************************************************************** INFO 2012-10-29 15:40:57,516 [WrapperListener_start_runner] org.mule.module.launcher.DeploymentService: ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + Mule is up and kicking (every 5000ms) + ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
app
directory and delete the fileyour_application.txt
. This removes your application from the /app
directory. Publish the application to the Application Repository in the Mule Management Console. Once in the repository, the application can be deployed from the repository to multiple Mule server instances, and even to multi-node Mule clusters. (The Mule Management Console is only available in Mule ESB Enterprise Edition.)
Once in the repository, the application can be deployed from the Repository to multiple Mule server instances and even to multi-node high-availability clusters. To publish an application to the management console’s app repo, you must first download, then install and set-up Mule ESB Standalone with Mule Management Console. Access the management console’s Quick Start Guide to set up a console environment, then complete the following steps to publish your Studio application to its application repository.
Deploy the application to CloudHub, Mule’s platform for cloud-based integration. CloudHub represents the least painful approach for fast, worry-free cloud-to-cloud and cloud-to-premise deployment.
CloudHub is a cloud-based integration Platform as a Service (iPaaS). It provides a convenient way for developers to launch their applications on a cloud platform, while also providing many enhanced features for solving cloud-to-cloud and cloud-to-premise integration problems. Mule Studio is fully integrated with CloudHub and facilitates simple application deployment.
Deploying a Studio-built application to CloudHub involves three steps:
For this example, however, we deploy our application directly from Studio, as detailed below.
Many projects can be deployed directly to CloudHub. However, some projects require minor modifications, as summarized below.
${http.port
}. You can create an application.properties
file that allows you to run your project locally on a specific port and also on CloudHub as a dynamic port. See the exampleHello World on CloudHub for details on how to create this file.0.0.0.0
instead of localhost
.My-Project-Name
. CloudHub automatically checks the availability of the sub-domain, then displays a checkmark icon to confirm that your entry is unique. https://cloudhub.io/console.html#
) to view your newly deployed application.