简体   繁体   English

Mule ESB可以部署在Application Server中

[英]Mule ESB can be deployed in Application Server

Can I deploy Mule on any of the application server. 我可以在任何应用程序服务器上部署Mule。 If so how do we deploy the Mule examples. 如果是这样,我们如何部署Mule示例。

I have configured my eclipse to run JBoss and Mule Flows dont get deployed in the JBOss server. 我已经配置了我的eclipse来运行JBoss,并且Mule Flows没有部署在JBOss服务器中。 The syncronisation gives error(null pointer). 同步给出错误(空指针)。

But when I run as Mule Application it runs fine but starts Mule Server. 但是当我作为Mule应用程序运行它运行正常但启动Mule Server。

How does Mule deployed in the production? Mule如何在生产中部署? Do we need Mule server in production working along with the application Server? 我们是否需要在生产中使用Mule服务器以及应用程序服务器?

Can we package all the application in one(ESB + application) and deploy it in the application server. 我们可以将所有应用程序打包在一个(ESB +应用程序)中并将其部署在应用程序服务器中。

You have the choice regarding production deployments of Mule: 您可以选择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. 使用Mule独立作为您的首选,因为它包含所有模块/传输,是生产级(控制脚本...)并支持热应用程序重新加载。
  • If your deployment environment forces you to deploy on application servers (like JBoss), package your Mule application as a web application (WAR). 如果您的部署环境强制您在应用程序服务器(如JBoss)上进行部署, 请将Mule应用程序打包为Web应用程序 (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. 如果您决定将Mule应用程序打包为WAR,我强烈建议您使用Maven来执行此操作,因为每个Mule模块/传输都需要许多依赖项。 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. 还要确保使用Servlet入站端点而不是HTTP入站端点,否则Mule将在Web容器内打开另一个HTTP服务器。 You want Mule to use the servlet container for its inbound HTTP requests. 您希望Mule将servlet容器用于其入站HTTP请求。

Yes you can. 是的你可以。 You might want to take a look to the Embedding Mule in a Java Application or Webapp manual page, and the Deploying Mule as a Service to Tomcat . 您可能希望查看Java应用程序或Webapp手册页中的Embedding Mule ,以及将Tomule Mule即服务部署到Tomcat

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM