1 Reply Latest reply on Oct 2, 2006 10:57 AM by Andrew Rubinger

    Remote client problem

    Ivan penuelas Newbie

      Hi, I am trying to access a remote ejb, with mi client but its not working i dont know why here its mi code

      Hashtable<String,String> propsJNDI = new Hashtable<String,String>();
      //Populate the HashtableE object with JNDI environment values

      //Hacemos la conexión con el Bean
      Context c = new InitialContext(propsJNDI);
      Object o = c.lookup ("Conecta");

      do I have to change some configuration on the jboss because on the jmx-console the rmi binding its set to and i can not modify it from the jmx-console it trows me an error

      can some one help me or tell me about a topic that discuss that

      hope someone can help me...

        • 1. Re: Remote client problem
          Andrew Rubinger Master

          What kind of error are you getting? Stack trace?

          Couple guesses:

          "" will bind to "all available addresses" ... if your remote host is resolving this to "localhost", or "", then that value will be in the remote proxy returned, and your client will try to contact itself. If you're running Linux on your remote host, you can resolve this by editing /etc/hosts to point localhost to "". This error should manifest itself as an NoSuchObject error or a ConnectException...

          Or maybe you're just looking up the wrong address in JNDI? Ensure it's "Conecta", and not "Conecta/remote" or similar by checking the JNDI Tree: http://wiki.jboss.org/wiki/Wiki.jsp?page=DisplayTheJDNITreeWithTheJMXConsole

          Good luck. :)