将War部署到Mule Standalone服务器

时间:2012-06-18 17:50:43

标签: mule

我有一个带有我正在处理的应用程序的独立服务器。该应用程序使用的许多服务将来会从Mule容器移出到JBoss集群中。因此,我在骡子流和Web服务之间保持着强烈的分离。但是,截至目前,我需要在与Mule应用程序相同的服务器上部署War文件。

似乎骡子应该能够在其中运行我的战争。有谁知道这是否可能?我暂时可以在Mule可部署的zip中添加一个War,但是也想单独部署战争。

1 个答案:

答案 0 :(得分:4)

Mule ESB不是标准的Java EE容器,因此不会直接处理WAR文件。事实上,mule应用程序具有以下结构:

/
 \- classes                 // application-specific resources(e.g. logging config, properties)
 |- lib                     // application-specific jars
 |- mule-config.xml         // Main Mule configuration file, also monitored for changes
 |- mule-deploy.properties  // Application deployment descriptor (optional)
 |- mule-app.properties     // custom properties to be added to the registry instance used by the application (optional)

这里有更好的解释:

http://www.mulesoft.org/documentation/display/MULE3USER/Application+Format

您可以利用mule jetty连接器来展示您的Web应用程序。您的连接器配置如下所示:

 <jetty:connector name="jettyConnector">
    <jetty:webapps directory="${app.home}/webapps" port="8083"/>
</jetty:connector>

您将把war文件放入webapps文件夹中。您可以使用书店示例作为参考:

http://www.mulesoft.org/documentation/display/MULE3EXAMPLES/Bookstore+Example

相关问题