[jboss-user] [JBoss jBPM] - access defaultds

AJanz do-not-reply at jboss.com
Fri May 9 05:50:58 EDT 2008


i am using jbpm-jpdl-suite-3.2.2.  i am trying to connect to the defaultds. but i got the error "DefaultDS not bound" 

when i use the jndiview from web-console i see that it is there.... 

i use the following code, what am i doing wrong? 

  |   Hashtable<String, String> env;
  |   env = new Hashtable<String, String>();
  |   env.put("java.naming.factory.initial", "org.jnp.interfaces.NamingContextFactory");
  |   env.put("java.naming.factory.url.pkgs","org.jboss.naming:org.jn.interfaces");
  |   env.put("java.naming.provider.url","jnp://localhost:1099");
  |   Context  initContext = new InitialContext(env);
  |   DataSource ds = (DataSource)initContext.lookup("java:/DefaultDS");

server runs in a seperate window. 

my code is executed with eclipse

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

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

More information about the jboss-user mailing list