Jetty JNDI-如何在一个位置指定“auth”、“type”和“factory”

Jetty JNDI-如何在一个位置指定“auth”、“type”和“factory”,jetty,jndi,Jetty,Jndi,我希望通过使用他们的tomcat作为一个例子,让Camunda BMP引擎在Jetty中工作 Tomcat对所需资源的JNDI位于其server.xml中,与特定web应用程序无关,如下所示: <GlobalNamingResources> <Resource name="global/camunda-bpm-platform/process-engine/ProcessEngineService!org.camunda.bpm.ProcessEngineService

我希望通过使用他们的tomcat作为一个例子,让Camunda BMP引擎在Jetty中工作

Tomcat对所需资源的JNDI位于其server.xml中,与特定web应用程序无关,如下所示:

<GlobalNamingResources>
    <Resource name="global/camunda-bpm-platform/process-engine/ProcessEngineService!org.camunda.bpm.ProcessEngineService"
        auth="Container"
        type="org.camunda.bpm.ProcessEngineService"
        description="camunda BPM platform Process Engine Service"
     factory="org.camunda.bpm.container.impl.jndi.ProcessEngineServiceObjectFactory" />
在jetty中执行此操作时,我没有看到一个地方可以将所有这些信息放在web应用程序之外的单个条目中。看起来我必须在jetty.xml中创建命名条目,然后,要添加“type”和“auth”,我必须在我的camunda engine web app的web.xml中添加一个条目,其中有两个条目。这是正确的吗?例如

jetty.xml:

Configure id="Server" class="org.eclipse.jetty.Server">
    <New id="cf" class="org.eclipse.jetty.plus.jndi.Resource">
        <Arg><Ref refid="Server"/></Arg>
        <Arg>global/camunda-bpm-platform/process-engine/ProcessEngineService!org.camunda.bpm.ProcessEngineService</Arg>
        <Arg>
            <New class="org.camunda.bpm.container.impl.jndi.ProcessEngineServiceObjectFactory"></New>
        </Arg>
    </New>
</Configure>
然后在WEB-INF/WEB.xml中:

<resource-ref>
    <res-ref-name>camunda/pe</res-ref-name>
    <res-type>org.camunda.bpm.ProcessEngineService</res-type>
    <res-auth>Container</res-auth>
</resource-ref>
还有别的办法吗

比尔

你看到这个了吗?