title: JBoss EAP6 Connection to external HornetQ Implementation doesn't work, but does with JBoss 7.1.1
body: <p>I am trialing the JBoss AS EAP6. </p>
  
  <p>However I have system solution that has been implementated using JBoss AS 7.1.1. and an external HornetQ 2.1.14 implementation. This works successfully with JBoss 7.1.1, but EAP 6 doesn't connect to HornetQ.</p>
  
  <p>I am running as localhost. is it a case this just doesn't work, or am I missing something and the configuration is wrong?</p>
  
  <p><strong>HornetQ configuration:</strong></p>
  
  <p><strong>hornetq-beans.xml</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  
  &lt;deployment xmlns="urn:jboss:bean-deployer:2.0"&gt;
  
     &lt;bean name="Naming" class="org.jnp.server.NamingBeanImpl"/&gt;
  
     &lt;!-- JNDI server. Disable this if you don't want JNDI --&gt;
     &lt;bean name="JNDIServer" class="org.jnp.server.Main"&gt;
        &lt;property name="namingInfo"&gt;
       &lt;inject bean="Naming"/&gt;
        &lt;/property&gt;
        &lt;property name="port"&gt;${jnp.port:1099}&lt;/property&gt;
        &lt;property name="bindAddress"&gt;${jnp.host:localhost}&lt;/property&gt;
        &lt;property name="rmiPort"&gt;${jnp.rmiPort:1098}&lt;/property&gt;
        &lt;property name="rmiBindAddress"&gt;${jnp.host:localhost}&lt;/property&gt;
     &lt;/bean&gt;
  
     &lt;!-- MBean server --&gt;
     &lt;bean name="MBeanServer" class="javax.management.MBeanServer"&gt;
        &lt;constructor factoryClass="java.lang.management.ManagementFactory"
             factoryMethod="getPlatformMBeanServer"/&gt;
     &lt;/bean&gt; 
  
     &lt;!-- The core configuration --&gt;
     &lt;bean name="Configuration" class="org.hornetq.core.config.impl.FileConfiguration"&gt;
     &lt;/bean&gt;
  
      &lt;!-- The security manager --&gt;
     &lt;bean name="HornetQSecurityManager" class="org.hornetq.spi.core.security.HornetQSecurityManagerImpl"&gt;
        &lt;start ignored="true"/&gt;
        &lt;stop ignored="true"/&gt;
     &lt;/bean&gt;
  
      &lt;!-- The core server --&gt;
     &lt;bean name="HornetQServer" class="org.hornetq.core.server.impl.HornetQServerImpl"&gt;
        &lt;constructor&gt;
       &lt;parameter&gt;
          &lt;inject bean="Configuration"/&gt;
       &lt;/parameter&gt;
       &lt;parameter&gt;
          &lt;inject bean="MBeanServer"/&gt;
       &lt;/parameter&gt;
       &lt;parameter&gt;
          &lt;inject bean="HornetQSecurityManager"/&gt;
       &lt;/parameter&gt;        
        &lt;/constructor&gt;
        &lt;start ignored="true"/&gt;
        &lt;stop ignored="true"/&gt;
     &lt;/bean&gt;
  
     &lt;!-- The JMS server --&gt;
     &lt;bean name="JMSServerManager" class="org.hornetq.jms.server.impl.JMSServerManagerImpl"&gt;
        &lt;constructor&gt;         
       &lt;parameter&gt;
          &lt;inject bean="HornetQServer"/&gt;
       &lt;/parameter&gt;         
        &lt;/constructor&gt;
     &lt;/bean&gt;
  
  
  &lt;/deployment&gt;
  </code></pre>
  
  <p><strong>hornetq-configuration.xml</strong></p>
  
  <pre><code>&lt;configuration xmlns="urn:hornetq"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             xsi:schemaLocation="urn:hornetq /schema/hornetq-configuration.xsd"&gt;
  
     &lt;clustered&gt;true&lt;/clustered&gt;
  
     &lt;paging-directory&gt;${data.dir:../data}/node-a/paging&lt;/paging-directory&gt;
  
     &lt;bindings-directory&gt;${data.dir:../data}/node-a/bindings&lt;/bindings-directory&gt;
  
     &lt;journal-directory&gt;${data.dir:../data}/node-a/journal&lt;/journal-directory&gt;
  
     &lt;journal-min-files&gt;10&lt;/journal-min-files&gt;
  
     &lt;large-messages-directory&gt;${data.dir:../data}/node-a/large-messages&lt;/large-messages-directory&gt;
  
     &lt;connectors&gt;      
        &lt;connector name="netty"&gt;
       &lt;factory-class&gt;org.hornetq.core.remoting.impl.netty.NettyConnectorFactory&lt;/factory-class&gt;
       &lt;param key="host"  value="${hornetq.remoting.netty.host:localhost}"/&gt;
       &lt;param key="port"  value="${hornetq.remoting.netty.port:5445}"/&gt;
        &lt;/connector&gt;
  
        &lt;connector name="netty-throughput"&gt;
       &lt;factory-class&gt;org.hornetq.core.remoting.impl.netty.NettyConnectorFactory&lt;/factory-class&gt;
       &lt;param key="host"  value="${hornetq.remoting.netty.host:localhost}"/&gt;
       &lt;param key="port"  value="${hornetq.remoting.netty.batch.port:5455}"/&gt;
       &lt;param key="batch-delay" value="50"/&gt;
        &lt;/connector&gt;
     &lt;/connectors&gt;
  
     &lt;acceptors&gt;
        &lt;acceptor name="netty"&gt;
       &lt;factory-class&gt;org.hornetq.core.remoting.impl.netty.NettyAcceptorFactory&lt;/factory-class&gt;
       &lt;param key="host"  value="${hornetq.remoting.netty.host:localhost}"/&gt;
       &lt;param key="port"  value="${hornetq.remoting.netty.port:5445}"/&gt;
        &lt;/acceptor&gt;
  
        &lt;acceptor name="netty-throughput"&gt;
       &lt;factory-class&gt;org.hornetq.core.remoting.impl.netty.NettyAcceptorFactory&lt;/factory-class&gt;
       &lt;param key="host"  value="${hornetq.remoting.netty.host:localhost}"/&gt;
       &lt;param key="port"  value="${hornetq.remoting.netty.batch.port:5455}"/&gt;
       &lt;param key="batch-delay" value="50"/&gt;
       &lt;param key="direct-deliver" value="false"/&gt;
        &lt;/acceptor&gt;
     &lt;/acceptors&gt;
  
     &lt;broadcast-groups&gt;
        &lt;broadcast-group name="bg-group1"&gt;
       &lt;group-address&gt;231.7.7.7&lt;/group-address&gt;
       &lt;group-port&gt;9876&lt;/group-port&gt;
       &lt;broadcast-period&gt;5000&lt;/broadcast-period&gt;
       &lt;connector-ref&gt;netty&lt;/connector-ref&gt;
        &lt;/broadcast-group&gt;
     &lt;/broadcast-groups&gt;
  
     &lt;discovery-groups&gt;
        &lt;discovery-group name="dg-group1"&gt;
       &lt;group-address&gt;231.7.7.7&lt;/group-address&gt;
       &lt;group-port&gt;9876&lt;/group-port&gt;
       &lt;refresh-timeout&gt;10000&lt;/refresh-timeout&gt;
        &lt;/discovery-group&gt;
     &lt;/discovery-groups&gt;
  
     &lt;cluster-connections&gt;
        &lt;cluster-connection name="my-cluster"&gt;
       &lt;address&gt;jms&lt;/address&gt;  
       &lt;connector-ref&gt;netty&lt;/connector-ref&gt;
           &lt;retry-interval&gt;500&lt;/retry-interval&gt;
           &lt;forward-when-no-consumers&gt;true&lt;/forward-when-no-consumers&gt;
           &lt;max-hops&gt;1&lt;/max-hops&gt;
           &lt;discovery-group-ref discovery-group-name="dg-group1"/&gt;
        &lt;/cluster-connection&gt;
     &lt;/cluster-connections&gt;
  
     &lt;security-settings&gt;
        &lt;security-setting match="#"&gt;
       &lt;permission type="createNonDurableQueue" roles="guest"/&gt;
       &lt;permission type="deleteNonDurableQueue" roles="guest"/&gt;
       &lt;permission type="consume" roles="guest"/&gt;
       &lt;permission type="send" roles="guest"/&gt;
        &lt;/security-setting&gt;
     &lt;/security-settings&gt;
  
     &lt;address-settings&gt;
        &lt;!--default for catch all--&gt;
        &lt;address-setting match="#"&gt;
       &lt;dead-letter-address&gt;jms.queue.DLQ&lt;/dead-letter-address&gt;
       &lt;expiry-address&gt;jms.queue.ExpiryQueue&lt;/expiry-address&gt;
       &lt;redelivery-delay&gt;0&lt;/redelivery-delay&gt;
       &lt;max-size-bytes&gt;10485760&lt;/max-size-bytes&gt;       
       &lt;message-counter-history-day-limit&gt;10&lt;/message-counter-history-day-limit&gt;
       &lt;address-full-policy&gt;BLOCK&lt;/address-full-policy&gt;
           &lt;redistribution-delay&gt;1000&lt;/redistribution-delay&gt;
        &lt;/address-setting&gt;
     &lt;/address-settings&gt;
  
  
  
  &lt;/configuration&gt;
  </code></pre>
  
  <p><strong>JBoss EAP 6 Configuration</strong></p>
  
  <p><strong>standalone-ha.xml</strong></p>
  
  <p>key parts of the file are below:</p>
  
  <pre><code>&lt;extensions&gt;
      &lt;extension module="org.jboss.as.clustering.infinispan"/&gt;
      &lt;extension module="org.jboss.as.clustering.jgroups"/&gt;
      &lt;extension module="org.jboss.as.configadmin"/&gt;
      &lt;extension module="org.jboss.as.connector"/&gt;
      &lt;extension module="org.jboss.as.deployment-scanner"/&gt;
      &lt;extension module="org.jboss.as.ee"/&gt;
      &lt;extension module="org.jboss.as.ejb3"/&gt;
      &lt;extension module="org.jboss.as.jaxrs"/&gt;
      &lt;extension module="org.jboss.as.jdr"/&gt;
      &lt;extension module="org.jboss.as.jmx"/&gt;
      &lt;extension module="org.jboss.as.jpa"/&gt;
      &lt;extension module="org.jboss.as.logging"/&gt;
      &lt;extension module="org.jboss.as.mail"/&gt;
      &lt;extension module="org.jboss.as.modcluster"/&gt;
      &lt;extension module="org.jboss.as.naming"/&gt;
      &lt;extension module="org.jboss.as.osgi"/&gt;
      &lt;extension module="org.jboss.as.pojo"/&gt;
      &lt;extension module="org.jboss.as.remoting"/&gt;
      &lt;extension module="org.jboss.as.sar"/&gt;
      &lt;extension module="org.jboss.as.security"/&gt;
      &lt;extension module="org.jboss.as.threads"/&gt;
      &lt;extension module="org.jboss.as.transactions"/&gt;
      &lt;extension module="org.jboss.as.web"/&gt;
      &lt;extension module="org.jboss.as.webservices"/&gt;
      &lt;extension module="org.jboss.as.weld"/&gt;
      &lt;extension module="org.jboss.snowdrop"/&gt;
  &lt;/extensions&gt;
  
  &lt;interfaces&gt;
      &lt;interface name="management"&gt;
          &lt;inet-address value="${jboss.bind.address.management:127.0.0.1}"/&gt;
      &lt;/interface&gt;
      &lt;interface name="public"&gt;
          &lt;inet-address value="${jboss.bind.address:127.0.0.1}"/&gt;
      &lt;/interface&gt;
      &lt;interface name="unsecure"&gt;
          &lt;inet-address value="${jboss.bind.address.unsecure:127.0.0.1}"/&gt;
      &lt;/interface&gt;
  &lt;/interfaces&gt;
  
  &lt;socket-binding-group name="standard-sockets" default-interface="public" port-offset="${jboss.socket.binding.port-offset:0}"&gt;
      &lt;socket-binding name="management-native" interface="management" port="${jboss.management.native.port:9999}"/&gt;
      &lt;socket-binding name="management-http" interface="management" port="${jboss.management.http.port:9990}"/&gt;
      &lt;socket-binding name="management-https" interface="management" port="${jboss.management.https.port:9443}"/&gt;
      &lt;socket-binding name="ajp" port="8009"/&gt;
      &lt;socket-binding name="http" port="8080"/&gt;
      &lt;socket-binding name="https" port="8443"/&gt;
      &lt;socket-binding name="jgroups-diagnostics" port="0" multicast-address="224.0.75.75" multicast-port="7500"/&gt;
      &lt;socket-binding name="jgroups-mping" port="0" multicast-address="${jboss.default.multicast.address:230.0.0.4}" multicast-port="45700"/&gt;
      &lt;socket-binding name="jgroups-tcp" port="7600"/&gt;
      &lt;socket-binding name="jgroups-tcp-fd" port="57600"/&gt;
      &lt;socket-binding name="jgroups-udp" port="55200" multicast-address="${jboss.default.multicast.address:230.0.0.4}" multicast-port="45688"/&gt;
      &lt;socket-binding name="jgroups-udp-fd" port="54200"/&gt;
      &lt;socket-binding name="modcluster" port="0" multicast-address="224.0.1.105" multicast-port="23364"/&gt;
      &lt;socket-binding name="osgi-http" interface="management" port="8090"/&gt;
      &lt;socket-binding name="remoting" port="4447"/&gt;
      &lt;socket-binding name="txn-recovery-environment" port="4712"/&gt;
      &lt;socket-binding name="txn-status-manager" port="4713"/&gt;
      &lt;outbound-socket-binding name="mail-smtp"&gt;
          &lt;remote-destination host="localhost" port="25"/&gt;
      &lt;/outbound-socket-binding&gt;
  &lt;/socket-binding-group&gt;
  </code></pre>