简体   繁体   English

Mule ESB开发生产模式

[英]Mule ESB development and production mode

Looking at the logs it looks like Mule is always starting in Developement Mode,查看日志,Mule 似乎总是以开发模式启动,

How do I switch this for Production?如何将其切换为生产?

**********************************************************************
* 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 *
********************************************************************** 

EDIT编辑

I found out that the setting comes from org.mule.util.ServerStartupSplashScreen我发现该设置来自 org.mule.util.ServerStartupSplashScreen

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

This is set in MuleContainer and MuleServer init method, but we do not use those as we are starting mule from servlet listener in Tomcat这是在 MuleContainer 和 MuleServer init 方法中设置的,但我们不使用它们,因为我们从 Tomcat 中的 servlet 侦听器启动 mule

I cannot find any real use for it.我找不到任何真正的用途。 Does mule use this flag for something?骡子会用这个标志做些什么吗?

Andrew Perepelytsya May 27, 2011;安德鲁 Perepelytsya 2011 年 5 月 27 日; 4:15pm Re: Mule ESB development and production mode Reply | 4:15pm Re: Mule ESB 开发生产模式 回复 | Threaded |螺纹 | More [Click for more options] star Andrew Perepelytsya 7502 posts更多 [点击查看更多选项] 明星 Andrew Perepelytsya 7502 个帖子

Hi Boris,嗨,鲍里斯,

It's a legacy code, at the moment it doesn't affect things.这是一个遗留代码,目前它不会影响事物。 The only potential use for it in Mule 3 I can think of for now is to disable hot-deployment.我现在能想到的 Mule 3 中它的唯一潜在用途是禁用热部署。

Andrew安德鲁

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

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

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