Uploaded image for project: 'HornetQ'
  1. HornetQ
  2. HORNETQ-1147

Client tries to use local-bind-address when using JMS connection factory from JNDI

    Details

      Description

      When a JMS connection factory is configured in JBoss AS7 to use a discovery group and a remote client pulls this connection factory out of JNDI and tries to use it it will fail because it tries to use the local-bind-address of the server. This is partly because AS7 sets the local-bind-address of the discovery group automatically to the server's bind address, but the problem would ostensibly occur even in HornetQ standalone if the local-bind-address were set explicitly.

      For now one can work-around the problem with a bit of code like this:

      HornetQConnectionFactory hqcf = (HornetQConnectionFactory) connectionFactoryFromJNDI;
      if (hqcf.getDiscoveryGroupConfiguration() != null) {
          hqcf.getDiscoveryGroupConfiguration().setLocalBindAdress(null);
      }
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                jbertram Justin Bertram
                Reporter:
                jbertram Justin Bertram
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: