我想在mule esb中配置嵌入式jetty服务器。
我试过很多方法,但都不能成功。请告诉我配置的步骤。
我想做webinf文件夹,我可以在其中存放servlet文件和jsp文件。我看过在线书籍示例,但它在我的mulestudio中不起作用。
我收到文件夹结构错误。我也尝试过搜索,但没有得到任何有效的例子。
发布于 2014-11-11 00:13:42
在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//文件夹中创建一个webapps文件夹,其中包含与其他服务器中相同的WEB-INF和HTML/JSP文件
发布于 2018-03-30 06:06:28
添加完整的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>https://stackoverflow.com/questions/26844632
复制相似问题