[jboss-user] [JNDI/Naming/Network] - Could not obtain connection to a url

rodosa do-not-reply at jboss.com
Mon Mar 3 05:22:49 EST 2008


Hello!!

    I'm using JBoss 4.2.2 and I've installed WMWare in my computer and I've created a virtual O.S. In this virtual machine I've installed jbpm 3.2.2. I would like to communicate from my Jboss 4.2.2 to this remote jbpm. I've created a method where I configure the context's properties but I don't get to establish the connection. The error that is shown is: 

Could not obtain connection to any of these urls: x.x.x.x
But the ip is that the computer shown when I type ipconfig



  | public void crearInstanciaProceso() {
  | 		
  | 		 Hashtable env = new Hashtable();
  | 		 env.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory");
  | 		 env.put(Context.PROVIDER_URL, "http//x.x.x.x:1099/");
  | 		 env.put(Context.URL_PKG_PREFIXES,"org.jboss.naming:org.jnp.interfaces");
  | 		
  | 		 try{
  | 			 InitialContext intCtx = new InitialContext(env);
  | 			 Object obj = intCtx.lookup("JbpmDS");
  | 			 System.out.println("-->JBPMDS");
  | 			 //Recuperar id del proceso
  | 			 
  | 			 //Iniciar el proceso
  | 			 
  | 			 
  | 		 }catch(Exception e){
  | 			 e.printStackTrace();
  | 		 }
  | 	}


Any ideas?

Thank

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

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



More information about the jboss-user mailing list