title: HornetQ: Cannot use connection factory when the server is acting as a backup
body: <p>I have live-backup HornetQ 2 servers cluster sharing a store on a NAS, i have applications from outside connecting to the cluster and i can see that everything is working: when live server goes down and the backup start as a live one, my applications are switching to this new server without any problem.</p>
  
  <p>HornetQ is used as a part of JBoss AS 7 server, where i have other applications too that are connecting to the HornetQ cluster, they are using the same connection factory used by other application from outside the cluster, here's the used connection factory:</p>
  
  <pre><code>&lt;jms-connection-factories&gt;
      &lt;connection-factory name="hornetq"&gt;
          &lt;connectors&gt;
              &lt;connector-ref connector-name="node1-live"/&gt;
              &lt;connector-ref connector-name="node2-backup"/&gt;
          &lt;/connectors&gt;
          &lt;entries&gt;
              &lt;entry name="java:/jms/ConnectionFactory"/&gt;
              &lt;entry name="java:jboss/exported/jms/ConnectionFactory"/&gt;
          &lt;/entries&gt;
      &lt;/connection-factory&gt;
  &lt;/jms-connection-factories&gt;
  </code></pre>
  
  <p>and here's my connectors definitions:</p>
  
  <pre><code>&lt;connectors&gt;
      &lt;netty-connector name="netty" socket-binding="messaging"/&gt;
      &lt;in-vm-connector name="in-vm" server-id="0"/&gt;
      &lt;connector name="node1-live"&gt;
          &lt;factory-class&gt;org.hornetq.core.remoting.impl.netty.NettyConnectorFactory&lt;/factory-class&gt;
          &lt;param key="host" value="10.10.10.1"/&gt;
          &lt;param key="port" value="5445"/&gt;
          &lt;param key="use-nio" value="true"/&gt;
      &lt;/connector&gt;
      &lt;connector name="node2-backup"&gt;
          &lt;factory-class&gt;org.hornetq.core.remoting.impl.netty.NettyConnectorFactory&lt;/factory-class&gt;
          &lt;param key="host" value="10.10.10.2"/&gt;
          &lt;param key="port" value="5445"/&gt;
          &lt;param key="use-nio" value="true"/&gt;
      &lt;/connector&gt;
  &lt;/connectors&gt;
  </code></pre>
  
  <p>The problem i'm having is no node2 (backup node), it seems that when it's running as backup, the HornetQ messaging subsystem is not loaded and in consequence, the factories and connectors are not exposed to the applications hosted on node2's JBoss AS.</p>
  
  <p>Am looking for a way to expose factories and connectors to applications on the backup node in order to connect to the live server.</p>