Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-6461

Unable to lookup JMSConnectionFactory over IP

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Duplicate
    • Major
    • 7.1.1.Final
    • JMS
    • None

    Description

      I launch JBossAS 7.1.1.Final with standalone-full profile. I have server with hostname "test-server" and IP-address "192.168.216.82". Client knows nothing about server's hostname (only IP-address). When I try to connect and lookup JMSConnectionFactory (example project attached) I've got an exception "java.net.UnknownHostException: test-server" (full stacktrace is attached). In JBossAS 6 it was possible to connect to server over IP-address (not hostname). Is this problem caused by misconfiguration in standalone-full.xml?

      My local solution is to make a patch for jboss-messaging project (is attached) and to add host configuaration in messaging subsystem of standalone-full.xml:

      standalone-full.xml
      <subsystem xmlns="urn:jboss:domain:messaging:1.1">
      	...
      	<connectors>
      		<netty-connector name="netty" socket-binding="messaging">
      			<param key="host" value="${jboss.bind.address}"/>
      		</netty-connector>
      		<netty-connector name="netty-throughput" socket-binding="messaging-throughput">
      			<param key="host" value="${jboss.bind.address}"/>
      			...
      		</netty-connector>
      		...
      	</connectors>
      	...
      </subsystem>
      

      Attachments

        1. error.log
          3 kB
        2. jboss-as-messaging.patch
          2 kB
        3. test.client.zip
          6 kB

        Issue Links

          Activity

            People

              jmesnil1@redhat.com Jeff Mesnil
              madcent Aleksey Potapov (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: