Jetty JNDI - How to specify 'auth', 'type', and factory in one place -


i'm looking camunda (bmp engine) working in jetty using working tomcat example.

tomcat's jndi needed resource in server.xml (independent of specific web app) follows:

<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" /> 

when doing in jetty, didn't see place put of info in single entry, outside of web app. looks have create naming entry in, example, jetty.xml , then, add 'type' , 'auth', have add entry in web.xml of camunda engine web app (there 2 of them). correct? e.g.

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> 

and in 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> 

is there way?

bill


Comments

Popular posts from this blog

cakephp - simple blog with croogo -

How to group boxplot outliers in gnuplot -

bash - Performing variable substitution in a string -