【问题标题】:Mule ESB development and production modeMule ESB开发生产模式
【发布时间】:2011-05-30 15:24:10
【问题描述】:

查看日志,Mule 似乎总是以开发模式启动,

如何将其切换到生产环境?

**********************************************************************
* Mule ESB and Integration Platform *
* Version: 3.1.0 Build: 20848 *
* MuleSoft, Inc. *
* For more information go to http://www.mulesoft.org *
* *
* Server started: 5/24/11 10:45 AM *
* Server ID: 7159b2cb-85ea-11e0-b218-8777a961ba72 *
* JDK: 1.6.0_23 (mixed mode) *
* OS encoding: UTF-8, Mule encoding: UTF-8 *
* OS: Linux (2.6.18-238.el5, amd64) *
* Host: JAVVM17 (127.0.0.1) *
* Mode: Development *
* *
* Agents Running: *
* JMX Agent *
********************************************************************** 

编辑

我发现设置来自 org.mule.util.ServerStartupSplashScreen

    // Dev/Production mode
    final boolean productionMode = StartupContext.get().getStartupOptions().containsKey("production");
    header.add("Mode: " + (productionMode ? "Production" : "Development"));

这是在 MuleContainer 和 MuleServer init 方法中设置的,但我们不使用它们,因为我们是从 Tomcat 中的 servlet 侦听器启动 mule

我找不到任何真正的用途。骡子会用这个标志做些什么吗?

【问题讨论】:

    标签: java configuration esb mule


    【解决方案1】:

    安德鲁·佩雷佩利齐亚 2011 年 5 月 27 日;下午 4 点 15 分 Re: Mule ESB开发生产模式 回复 |螺纹 |更多 [点击查看更多选项] star 安德鲁·佩雷佩利齐亚 7502 个帖子

    嗨,鲍里斯,

    这是一个遗留代码,目前它不会影响任何事情。我现在能想到的 Mule 3 中它的唯一潜在用途是禁用热部署。

    安德鲁

    http://mule.1045714.n5.nabble.com/template/NamlServlet.jtp?macro=user_nodes&user=103667

    【讨论】:

      猜你喜欢
      • 2016-01-24
      • 2023-03-15
      • 2017-12-21
      • 1970-01-01
      • 2017-12-10
      • 1970-01-01
      • 2014-04-23
      • 2020-07-24
      • 1970-01-01
      相关资源
      最近更新 更多