I have a sar that uses JbpmService to bind a new JbpmConfiguration instance to JNDI. I have another webapp which tries to look the JbpmConfiguration up from JNDI, but I receive the following Exception:
java.lang.RuntimeException: Unable to complete JNDI lookup on: java:jbpm/JbpmConfiguration.
I have confirmed that the object is being bound to JNDI in JbpmService, and that the JNDI name being looked up is the same as the one being bound. Has anyone encountered this problem? I have tried both sets of code:
InitialContext ctx = new InitialContext();
JbpmConfiguration jc = (JbpmConfiguration) ctx.lookup(jndiConfigName);