将War部署到Mule独立服务器中 [英] Deploy War into Mule Standalone server

查看:75
本文介绍了将War部署到Mule独立服务器中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个运行着应用程序的m子独立服务器.将来,该应用程序使用的许多服务将从Mule容器中移出到JBoss集群中.因此,我在m子流和Web服务之间保持了强烈的分隔.但是,到目前为止,我需要将War文件与Mule应用程序部署在同一服务器上.

I've got a mule-standalone server with an application I'm working on. Many of the services this application uses will be moved out of the Mule container into a JBoss cluster in the future. Because of this, I'm keeping a strong separation between the mule flows, and the Web Services. However, as of right now, I need to deploy the War file on the same server as my Mule application.

M子似乎应该能够在其中进行我的战争.有人知道这是否可能吗?我暂时可以在Mule的可部署zip中添加War,但也想单独部署War.

It seems like Mule should be able to run my War within it. Does anyone know if this is possible? I'm OK with adding a War into the Mule deployable zip for the time being, but would also like to deploy the war separately.

推荐答案

Mule ESB不是标准的Java EE容器,因此无法直接处理WAR文件.实际上,m子应用程序具有以下结构:

Mule ESB is not a standard Java EE container so it won't be hable to handle directly WAR files. In fact mule applications have the following structure:

/
 \- 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/应用程序+格式

您可以做的是利用leverage子码头连接器公开您的Web应用程序.您的连接器配置如下所示:

What you can do is leverage the mule jetty connector to expose your web application. Your connector configuration will look like the following:

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

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

and you will be putting your war files into the webapps folder. You can use the bookstore example as a reference:

http://www.mulesoft.org/documentation/display/MULE3EXAMPLES/书店+示例

这篇关于将War部署到Mule独立服务器中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆