在mule esb中配置jetty服务器

在mule esb中配置jetty服务器,mule,mule-el,mule-component,mule-module-jpa,Mule,Mule El,Mule Component,Mule Module Jpa,我想在mule esb中配置嵌入式jetty服务器 我尝试过很多事情,但都没有成功。请告诉我如何配置的步骤 我想创建一个webinf文件夹,在其中可以托管servlet文件和jsp文件。我看过在线图书的例子,但它在我的mulestudio中不起作用 我得到文件夹结构错误。我也尝试过搜索,但没有得到任何有效的示例。在mule config.xml中添加以下内容:- <?xml version="1.0" encoding="UTF-8"?> <mule xmlns="h

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

我尝试过很多事情,但都没有成功。请告诉我如何配置的步骤

我想创建一个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文件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>

添加完整的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>