在Mule ESB中配置的Jetty服务器 [英] Configured jetty server in mule esb
问题描述
我想在Mule esb中配置嵌入式码头服务器.
I want to Configured embedded jetty server in mule esb.
我尝试了很多事情,但无法成功.请给我一步如何配置.
I have tried many thing but unable to get success. Please give me step how to configured.
我想创建一个webinf文件夹,在其中可以托管servlet文件和jsp文件.我已经看过在线图书示例,但是在我的mulestudio中它不起作用.
I want to make webinf folder in which I can host servlet file and jsp file. I have seen online book example, but It is not working in my mulestudio.
我收到文件夹结构错误.我也尝试搜索,但没有任何有效的示例.
I am getting folder structure error. I have also tried to search but didn't get any working example.
推荐答案
在 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文件
create a webapps folder in src/main/app folder of your project where you have WEB-INF and HTML/JSP files same as you have in other server
这篇关于在Mule ESB中配置的Jetty服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!