jcr - Apache Jackrabbit-standalone 中使用的嵌入式服务器是什么?
问题描述
我相信在jackrabbit-standalone jar中,应该嵌入一个应用程序服务器来提供Web内容。
我试图找到 jackrabbit-standalone.jar 中使用的确切嵌入式服务器。根据 jackrabbit-standalone 上的文档,它没有提到任何关于它的事情。
https://jackrabbit.apache.org/jcr/standalone-server.html
有人知道它使用哪种嵌入式服务器吗?
解决方案
它利用了eclipse jetty。
您可以通过挖掘项目的源代码,尤其是jackrabbit-standalone模块来验证它。
来自上述模块的pom.xml的片段:
...
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<extensions>true</extensions>
<configuration>
<instructions>
<Export-Package>
org.apache.jackrabbit.standalone
</Export-Package>
<Embed-Dependency>
*;inline=*.txt|*.html|*.jsp|*.xml|*.jar|*.properties|remoting/**|bootstrap/**|javax/**|repackage/**|images/**|com/**|ch/**|jline/**|Resources/**|css/**|schema*/**|EDU/**|error/**|org/**|META-INF/*.tld|META-INF/maven/**|META-INF/services/**|WEB-INF/config.xml|WEB-INF/*.properties|WEB-INF/templates/**
</Embed-Dependency>
<Embed-Transitive>true</Embed-Transitive>
<Main-Class>org.apache.jackrabbit.standalone.Main</Main-Class> <- This is the main class of the jar
</instructions>
</configuration>
...
来自org.apache.jackrabbit.standalone.Main的片段:
...
import org.eclipse.jetty.server.Server;
...
private final Server server = new Server();
...
server.start();
...
推荐阅读
- c# - 在 AR 环境中显示设备摄像头的输入
- powershell - 空值似乎在 foreach 循环中产生不正确的数据
- javascript - 如何在 React 中使用“this.props.params”?
- javascript - Threejs:如何使用 GLTFExporter 导出具有绘制范围的索引几何?
- dita - DITA OT 预处理
- r - 为什么 Rserve 不能运行?
- html - 如何使另一个下的 div 接收悬停事件?
- reactjs - React Native 和 React Navigation 出错
- javascript - 从 JavaScript 函数调用 PHP
- django - Dialogflow 缓存 webhook 请求会话