Hi,
I am trying to access JNDI resources from groovy script in a script task. I am using Tomcat and Camunda 7.8. I keep getting an exception;
Name [comp/env] is not bound in this Context. Unable to find [comp]
Script looks like;
def initialContext = new InitialContext(); def environmentContext = (Context) initialContext.lookup("java:comp/env"); def connectionURL = (String) environmentContext.lookup("XXX");
Hence should JNDI work in a script task, or has the script engine somehow got its own context separate from the Tomcat container?
(Note I am also deploying my bpmn file straight to the engine, there is no application/war file)
regards
Rob