查看日志,看起来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
我发现它没有任何实际用途。骡子用这个标志做什么吗?
答案 0 :(得分:0)
Andrew Perepelytsya 2011年5月27日;下午4:15 Re:Mule ESB开发和生产模式 回复|螺纹|更多[点击查看更多选项]明星 Andrew Perepelytsya 7502个帖子
嗨鲍里斯,
这是遗留代码,目前它不会影响事物。我现在能想到的Mule 3中唯一可能的用途就是禁用热部署。
安德鲁
http://mule.1045714.n5.nabble.com/template/NamlServlet.jtp?macro=user_nodes&user=103667