Mule ESB can be deployed in Application Server

R-JANA picture R-JANA · May 9, 2012 · Viewed 7.1k times · Source

Can I deploy Mule on any of the application server. If so how do we deploy the Mule examples.

I have configured my eclipse to run JBoss and Mule Flows dont get deployed in the JBOss server. The syncronisation gives error(null pointer).

But when I run as Mule Application it runs fine but starts Mule Server.

How does Mule deployed in the production? Do we need Mule server in production working along with the application Server?

Can we package all the application in one(ESB + application) and deploy it in the application server.

Answer

David Dossot picture David Dossot · May 9, 2012

You have the choice regarding production deployments of Mule:

  • Use Mule standalone as your first choice, as it comes packed with all modules/transport, is production grade (control scripts...) and supports hot application reloads.
  • If your deployment environment forces you to deploy on application servers (like JBoss), package your Mule application as a web application (WAR).

If you decide to package your Mule application as a WAR, I strongly suggest you use Maven to do so, as they each Mule module/transport require numerous dependencies. Dealing with this by hand would be insane.

Also be sure to use Servlet inbound endpoints instead of HTTP inbound endpoints otherwise Mule will open another HTTP server inside the web container. You want Mule to use the servlet container for its inbound HTTP requests.