title: JBoss configuration : Where should JMS Bridge configuration be?
body: <p>I'm new to JMS programming (Java).</p>
  
  <ul>
  <li>I have a machine M1, in a domain D1 and a machine M2 in another domain D2.</li>
  <li>I have in M1 a <strong>JMS producer</strong>. And in M2 a <strong>JMS consumer</strong>. Both have as servers <strong>JBoss 7.2</strong>.</li>
  <li>So it seems the only solution is to create a <strong>JMS bridge</strong>.</li>
  </ul>
  
  <p>I'm reading the official <a href="http://docs.jboss.org/hornetq/2.4.0.Final/docs/user-manual/html_single/#jms-bridge" rel="nofollow">documentation</a>. So I wonder if creating an SSH tunnel is necessary. </p>
  
  <p>Second, in which <code>hornetq-configuration.xml</code> file should I set the following configuration? </p>
  
  <pre><code>&lt;bridge name="my-bridge"&gt;
     &lt;queue-name&gt;jms.queue.sausage-factory&lt;/queue-name&gt;
     &lt;forwarding-address&gt;jms.queue.mincing-machine&lt;/forwarding-address&gt;
     &lt;filter-string="name='aardvark'"/&gt;
     &lt;transformer-class-name&gt;
        org.hornetq.jms.example.HatColourChangeTransformer
     &lt;/transformer-class-name&gt;
     &lt;retry-interval&gt;1000&lt;/retry-interval&gt;
     &lt;ha&gt;true&lt;/ha&gt;
     &lt;retry-interval-multiplier&gt;1.0&lt;/retry-interval-multiplier&gt;
     &lt;reconnect-attempts&gt;-1&lt;/reconnect-attempts&gt;
     &lt;failover-on-server-shutdown&gt;false&lt;/failover-on-server-shutdown&gt;
     &lt;use-duplicate-detection&gt;true&lt;/use-duplicate-detection&gt;
     &lt;confirmation-window-size&gt;10000000&lt;/confirmation-window-size&gt;
     &lt;user&gt;foouser&lt;/user&gt;
     &lt;password&gt;foopassword&lt;/password&gt;
     &lt;static-connectors&gt;
        &lt;connector-ref&gt;remote-connector&lt;/connector-ref&gt;
     &lt;/static-connectors&gt;
     &lt;!-- alternative to static-connectors
     &lt;discovery-group-ref discovery-group-name="bridge-discovery-group"/&gt;
     --&gt;
  &lt;/bridge&gt;
  </code></pre>
  
  <p><strong>Should it be in the in JBoss server of the JMS producer machine or consumer machine?</strong></p>
  
  <p>My third question is, <strong>is there a difference in settings between JMS bridge and core bridge?</strong></p>
  
  <p>I would be so thankful for any additional information and explainations!</p>
  
  <p>Thank you a lot!</p>