![](/img/trans.png)
[英]Evaluating performance of Mule ESB Server and Mule ESB applications in Community Edition
[英]Configured jetty server in mule esb
我想在Mule esb中配置嵌入式码头服务器。
我已经尝试了很多事情,但是无法获得成功。 请给我一步如何配置。
我想创建一个webinf文件夹,在其中可以托管servlet文件和jsp文件。 我已经看过在线图书示例,但是在我的mulestudio中它不起作用。
我收到文件夹结构错误。 我也尝试搜索,但是没有任何有效的示例。
在mule-config.xml中添加以下内容:
<?xml version="1.0" encoding="UTF-8"?>
<mule xmlns="http://www.mulesoft.org/schema/mule/core"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:jetty="http://www.mulesoft.org/schema/mule/jetty"
xsi:schemaLocation="
http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/current/mule.xsd
http://www.mulesoft.org/schema/mule/jetty http://www.mulesoft.org/schema/mule/jetty/current/mule-jetty.xsd">
<jetty:connector name="jettyConnector">
<jetty:webapps directory="${app.home}/webapps" port="8083"/>
</jetty:connector>
</mule>
在您的项目的src / main / app文件夹中创建一个webapps文件夹,您在其中拥有与其他服务器相同的WEB-INF和HTML / JSP文件
添加完整的SSL示例。 提出问题已经有一段时间了,但是我希望这会对某人有所帮助。
<?xml version="1.0" encoding="UTF-8"?>
<mule xmlns="http://www.mulesoft.org/schema/mule/core"
xmlns:jetty="http://www.mulesoft.org/schema/mule/jetty"
xmlns:jetty-ssl="http://www.mulesoft.org/schema/mule/jetty-ssl"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:doc="http://www.mulesoft.org/schema/mule/documentation"
xmlns:spring="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.mulesoft.org/schema/mule/core http://www.mulesoft.org/schema/mule/core/current/mule.xsd
http://www.mulesoft.org/schema/mule/jetty-ssl http://www.mulesoft.org/schema/mule/jetty-ssl/current/mule-jetty-ssl.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-current.xsd
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-current.xsd
http://www.mulesoft.org/schema/mule/jetty http://www.mulesoft.org/schema/mule/jetty/current/mule-jetty.xsd
http://www.mulesoft.org/schema/mule/jetty-ssl http://www.mulesoft.org/schema/mule/jetty/current/mule-jetty-ssl.xsd">
<context:property-placeholder location="${mule.env}.properties" />
<jetty-ssl:connector name="jettySslConnector" doc:name="Jetty">
<jetty-ssl:tls-key-store
path="${ssl.keystore.path}"
keyAlias="${ssl.keystore.alias}"
storePassword="${ssl.keystore.keypassword}"
keyPassword="${ssl.keystore.keypassword}"
type="jks" />
<jetty-ssl:webapps
directory="${app.home}/webapps"
port="${https.port}" />
</jetty-ssl:connector>
</mule>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.