Uploaded image for project: 'JBoss Remoting'
  1. JBoss Remoting
  2. JBREM-1322

Cannot set up serverBindAddress for secondarySocket in bisocket transport

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.5.4.SP4
    • Fix Version/s: None
    • Component/s: transport
    • Labels:
      None
    • Steps to Reproduce:
      Hide

      1. create bisocket server and start it behind a translating firewall
      2. create bisocket client with IS_CALLBACK_SERVER = true
      3. call Client.addListener()

      Show
      1. create bisocket server and start it behind a translating firewall 2. create bisocket client with IS_CALLBACK_SERVER = true 3. call Client.addListener()

      Description

      Using IS_CALLBACK_SERVER = true.

      In BisocketClientInvoker.java:355

      InvokerLocator getSecondaryLocator() throws Throwable

      { ... 355: Object o = invoke(r); ... }

      It retrieves host from server, but if you want to use original client invoker host, you cannot do this (it is necessary if server is behind translating firewall). If you want to do this, you have to patch this code manually to

      Object o = invoke(r);
      // DZ: patch to use original server address for creating secondary connection
      // instead of address retrieved from server (because server will return jboss bind address
      // that can be local address, inaccessible from client)
      InvokerLocator patchedLocator = new InvokerLocator( (( InvokerLocator ) o).getOriginalURI().replace(
      (( InvokerLocator ) o).getHost(), this.getLocator().getHost() )
      );
      log.debug("secondary locator: " + o);
      log.debug("patched secondary locator: " + patchedLocator);
      return patchedLocator;

      and rebuild jboss-remoting project.

      For ports there are settings SECONDARY_BIND_PORT, SECONDARY_CONNECT_PORT allowing to set up them as you want. For address there is no one to do this.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                ron_sigal Ron Sigal
                Reporter:
                elw00d Igor Kostromin
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: