2011-05-27 100 views
1

看着日誌,它看起來像Mule總是從開發模式開始,Mule ESB開發和生產模式

如何切換生產?

********************************************************************** 
* 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監聽器開始騾子

我找不到任何實際用途。騾子是否使用這個標誌的東西?

回答