3 Replies Latest reply on Mar 3, 2008 1:57 PM by Sara Rodríguez Dorrego

    Could not obtain connection to a url

    Sara Rodríguez Dorrego Novice

      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