[jboss-user] [JBoss jBPM] - JBPM getCurrentContext

agb48 do-not-reply at jboss.com
Thu May 31 12:14:49 EDT 2007


Hi all, I'm getting an exception while trying to lookup the jbpmConfiguration. I'm doing that from an external web app.
I need extra configuration ?

Here, my code thnks !!!!

protected JbpmConfiguration getJbpmConfiguration() throws Exception {
      if (this.conf == null){
         JbpmConfiguration config = null;
         String jndiName = null;
         Context ctx = new InitialContext();
         
         // Get jndi name for jbpm configuration
         
         jndiName = "java:/jbpm/JbpmConfiguration";
         config = (JbpmConfiguration)ctx.lookup(jndiName);
         this.conf = config;
      }
      return this.conf;
   }

The exceptions ocurrs when doing lookup.
If i do a 

JbpmConfiguration.getInstance().getCurrentJbpmContext()

I get a ClassNotFoundException org.jbpm....

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

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



More information about the jboss-user mailing list