1 Reply Latest reply on Mar 22, 2005 2:43 AM by Tom Elrod

    Standalone JBoss Remoting using Http

    Glen Worsley Newbie

      I am trying to get JBoss Remoting to connect across our LAN using Http as the transport protocol but have been unable to get this to work.
      We are using the sample classes provided in the org.jboss.samples.simple package, and changed the transport to http.
      This worked OK on a local host, but failed across the network. The exception returned was:

      org.jboss.remoting.CannotConnectException: Can not connect http client invoker.
       at org.jboss.remoting.transport.http.HTTPClientInvoker.useHttpURLConnection(HTTPClientInvoker.java:149)
      .

      Ultimately I want to use this to establish a remote connection through a firewall (hence the http), without using a servlet container. Should this be possible using JBoss Remoting standalone?

        • 1. Re: Standalone JBoss Remoting using Http
          Tom Elrod Master

          Yes, it should be possible. However, there is a bug in the HTTPServerInvoker causing it to always bind to localhost. I will make the fix and release a patch shortly.

          Until then, can either use a different transport, edit hosts file to point localhost to real ip you want to bind to, or change the HTTPServerInvoker's serverBindAddress variable value in the source and re-compile.

          Thanks.

          -Tom