运行 骡子CE

Running mule CE

我已经从官方网站下载了 mule standalone 3.6.1 并解压,然后从 bin 启动了 mule。

控制台:

MULE_HOME is set to C:\mule-standalone-3.6.1
Running in console/foreground mode by default, use Ctrl-C to exit...
--> Wrapper Started as Console
Launching a JVM...
Starting the Mule Container...
Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
  Copyright 1999-2006 Tanuki Software, Inc.  All Rights Reserved.


WARNING - Unable to load the Wrapper's native library because none of the
          following files:
            wrapper-windows-x86-64.dll
            wrapper.dll
          could be located on the following java.library.path:
            C:\mule-standalone-3.6.1\bin\%LD_LIBRARY_PATH%
            C:\mule-standalone-3.6.1\lib\boot
          Please see the documentation for the wrapper.java.library.path
          configuration property.
          System signals will not be handled correctly.

INFO  2015-03-29 23:34:32,390 [WrapperListener_start_runner] org.mule.module.lau
ncher.MuleContainer:
**********************************************************************
* Mule ESB and Integration Platform                                  *
* Version: 3.6.1 Build: b795785f                                     *
* MuleSoft, Inc.                                                     *
* For more information go to http://www.mulesoft.org                 *
*                                                                    *
* Server started: 29/03/15 23:34                                     *
* JDK: 1.8.0_40 (mixed mode)                                         *
* OS: Windows 7 - Service Pack 1 (6.1, amd64)                        *
* Host: Rajeun-PC (192.168.1.186)                                    *
**********************************************************************
INFO  2015-03-29 23:34:32,393 [WrapperListener_start_runner] org.mule.module.lau
ncher.coreextension.DefaultMuleCoreExtensionManager: Initializing core extension
s
INFO  2015-03-29 23:34:32,394 [WrapperListener_start_runner] org.mule.module.lau
ncher.coreextension.DefaultMuleCoreExtensionManager: Starting core extensions
INFO  2015-03-29 23:34:32,411 [WrapperListener_start_runner] org.mule.module.lau
ncher.DefaultArchiveDeployer: ================== New Exploded Artifact: default
INFO  2015-03-29 23:34:32,424 [WrapperListener_start_runner] org.mule.module.lau
ncher.MuleSharedDomainClassLoader: Using domain dir C:\mule-standalone-3.6.1\dom
ains\default for domain default
INFO  2015-03-29 23:34:32,533 [WrapperListener_start_runner] org.mule.module.lau
ncher.MuleDeploymentService:
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ Started domain 'default'                                 +
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
INFO  2015-03-29 23:34:32,540 [WrapperListener_start_runner] org.mule.module.lau
ncher.DefaultArchiveDeployer: ================== New Exploded Artifact: default
INFO  2015-03-29 23:34:32,560 [WrapperListener_start_runner] org.mule.module.lau
ncher.application.DefaultMuleApplication:
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ New app 'default'                                        +
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
INFO  2015-03-29 23:34:37,266 [WrapperListener_start_runner] org.mule.module.lau
ncher.MuleDeploymentService:
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ Started app 'default'                                    +
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
INFO  2015-03-29 23:34:37,270 [WrapperListener_start_runner] org.mule.module.lau
ncher.DeploymentDirectoryWatcher:
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+ Mule is up and kicking (every 5000ms)                    +
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
INFO  2015-03-29 23:34:37,356 [WrapperListener_start_runner] org.mule.module.lau
ncher.StartupSummaryDeploymentListener:
**********************************************************************
*              - - + DOMAIN + - -               * - - + STATUS + - - *
**********************************************************************
* default                                       * DEPLOYED           *
**********************************************************************

********************************************************************************
***********************
*            - - + APPLICATION + - -            *       - - + DOMAIN + - -
 * - - + STATUS + - - *
********************************************************************************
***********************
* default                                       * default
 * DEPLOYED           *
********************************************************************************
***********************

问题:

  1. 一切都好吗?是我的服务器运行嘛!我怎样才能检查出来。
  2. 如果我想部署我的应用程序,这是正确的方法吗?

    • 导航到包含您的 Mule ESB Standalone 副本的文件夹,然后将应用程序的 zip 文件粘贴到应用程序文件夹中。
      • Mule 每 5 秒(每 5000 毫秒)轮询一次应用程序文件夹;它会拾取您复制到应用程序文件夹的应用程序,然后自动提取并部署它。在命令行中,Mule 通知您它已经部署了应用程序。
  3. 然后我如何访问和测试部署在我刚刚安装的服务器上的应用程序。

  4. 有没有办法将我的代码中完成的每个动作与图形事件相关联,以便我的应用程序的用户可以可视化每个步骤的操作。 例如,我创建了一个应用程序,如果没有收到推送,它会向设备发送电子邮件。所以我的应用程序的用户可以看到进程的进度。

1- 是
2- 是
3- 使用应用程序的入站端点
4- 运行 来自 AnyPointStudio 的处于调试模式的应用程序

对于第三个问题:- "and then how I can access and test applications deployed on the server that I just installed." 您可以像在 Mule/Anypoint studio 中那样测试应用程序。
例如,您的应用程序包含一个 http 入站端点...因此要测试您需要在浏览器中粘贴 url 路径并点击它的应用程序。一旦您这样做,您可以看到您的应用程序正在运行并生成您期待的结果。
这与您 运行 和在工作室中测试您的应用程序的方式相同。

第 4 个问题的答案是您最好在应用程序中使用 log4j,并在流程的每个步骤中使用 logger...
因此,只要流程 运行,您就可以看到每个步骤都记录在独立服务器控制台中。
如果您想获得有关步骤的更多详细信息,请在 DEBUG 模式下配置您的 log4j

我猜的第一个和第二个问题已经回答了

  1. 是的,因为它显示 已部署 这意味着您已经以正确的方式部署。
  2. 是的,一切看起来都很好。

您可以运行调试模式下的应用程序您可以获得更多详细信息。