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

Unable to lookup JMSConnectionFactory over IP

XMLWordPrintable

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

      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>
      

        1. error.log
          3 kB
          Aleksey Potapov
        2. jboss-as-messaging.patch
          2 kB
          Aleksey Potapov

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

                Created:
                Updated:
                Resolved: