首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >mule esb中配置的jetty服务器

问mule esb中配置的jetty服务器
EN

Stack Overflow用户
提问于 2014-11-10 21:10:05
回答 2查看 1.2K关注 0票数 0

我想在mule esb中配置嵌入式jetty服务器。

我试过很多方法,但都不能成功。请告诉我配置的步骤。

我想做webinf文件夹,我可以在其中存放servlet文件和jsp文件。我看过在线书籍示例,但它在我的mulestudio中不起作用。

我收到文件夹结构错误。我也尝试过搜索,但没有得到任何有效的例子。

EN

回答 2

Stack Overflow用户

发布于 2014-11-11 00:13:42

在mule-config.xml中添加过滤:-

代码语言:javascript
复制
 <?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文件

票数 4
EN

Stack Overflow用户

发布于 2018-03-30 06:06:28

添加完整的SSL示例。这个问题已经提出了很长一段时间,但我希望这能对某些人有所帮助。

代码语言:javascript
复制
<?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>
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/26844632

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档