3 Replies Latest reply on Jan 28, 2002 12:57 PM by jmontoya777

    troubles to connect  a client  ....!

    jmontoya777

      Hello ...!

      I need connect a client (with EJB-JBoss Sever) but the client-machine is protected whit a firewall ...I'll try to connect across the port 1099 but the connection is refused ....!

      ¿ Must I define an especific open-port to JNDI or LDAP ?

        • 1. Re: troubles to connect  a client  ....!
          coetmeur

          how do you try to connect to jboss server ?

          it seems that you try to use the JNDI+RMI
          invoker, which use the JNDI port
          (I think it is the only used, but check ).
          this port can be changed, but anyway the client
          MUST be able to connect to a well known port
          whe the JNDI service must be listening.

          if you control the firewall you can
          add rules to open connection to jboss server port 1099.

          If you want to pass through a tight firewall
          you may prefer to use Web Services with SOAP
          protocol... I've heard it is quite easy to use
          with apache SOAP package, but I've nots tested

          you can also write a custom servlet
          and design a custom protocol above HTTP
          with POST/GET request...

          It may be possible to tunnel RMI through
          HTTP, but I don't think it is the case.
          check the forums anyway.

          • 2. Re: troubles to connect  a client  ....!
            coetmeur


            think about tunneling the RMI calls
            with custom RMI socket factories...

            http://java.sun.com./products/jdk/1.2/docs/guide/rmi/rmisocketfactory.doc.html

            this couls be done to tunnel through SSL, but maybe
            also through HTTP/HTTPS and whatever you want...

            ther might even exist some existing socket factory
            for common needs...

            • 3. Re: troubles to connect  a client  ....!
              jmontoya777


              So thank's Coetmeur ...!
              i agree, i must to add rules to open connection to jboss server port 1099.