[jboss-user] [jBPM Users] - Re: JNDI-Lookups for the ProcessEngine in Tomcat

jbarrez do-not-reply at jboss.com
Sun Sep 13 15:06:26 EDT 2009


Sebastion, this is the code that is used in the console to look up the process engine:

  | if (processEngine == null) {
  |       synchronized (ProcessEngine.class) {
  |         
  |         if (processEngine == null) {
  |           
  |           try {
  |             InitialContext ctx = new InitialContext();
  |             processEngine = (ProcessEngine) ctx.lookup(PROCESS_ENGINE_JNDI_NAME);
  |           } catch (Exception e) {
  |             // Fall back to default mechanism which build a procEngine from a default jbpm.cfg.xml
  |             processEngine = Configuration.getProcessEngine();
  |           }
  |           
  |         }
  |         
  |       }
  | 

Since there is no JNDI bound Process Engine in Tomcat, the catch() clause will be executed. So deploying a web service on Tomcat, should work.

* Are you using the exact same Tomcat that you get when u use the ant install task.

* Is the jbpm jar in the tomcat /lib folder?

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4254959#4254959

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4254959



More information about the jboss-user mailing list