Java Mule ESB开发和生产模式
从日志上看,Mule似乎总是以开发模式启动 如何将此切换到生产Java Mule ESB开发和生产模式,java,configuration,esb,mule,Java,Configuration,Esb,Mule,从日志上看,Mule似乎总是以开发模式启动 如何将此切换到生产 ********************************************************************** * Mule ESB and Integration Platform * * Version: 3.1.0 Build: 20848 * * MuleSoft, Inc. * * For more information go to http://www.mulesoft.org * * *
**********************************************************************
* 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.ServerScreen
// Dev/Production mode
final boolean productionMode = StartupContext.get().getStartupOptions().containsKey("production");
header.add("Mode: " + (productionMode ? "Production" : "Development"));
这是在MuleContainer和MuleServer init方法中设置的,但我们在Tomcat中从servlet侦听器启动mule时不使用这些方法
我找不到它真正的用途。骡子用这个旗子做什么事吗?Andrew Perepelytsya
2011年5月27日;下午4:15
Re:Mule ESB开发和生产模式
回复|线程化|更多[单击以获取更多选项]星形
安德鲁·佩雷佩里亚
7502个员额
嗨,鲍里斯
这是一个遗留代码,目前它不会影响任何东西。我现在能想到的Mule 3中它唯一的潜在用途是禁用热部署
安德鲁