0 Replies Latest reply on Aug 17, 2012 1:53 PM by Frank Ecsedy

    Core bridging and durable queues

    Frank Ecsedy Newbie

      In my standalone-server2.xml:

       

              <subsystem xmlns="urn:jboss:domain:messaging:1.1">
                  <hornetq-server>

                      <connectors>
                          <connector name="netty-server1-connector">
                              <factory-class>org.hornetq.core.remoting.impl.netty.NettyConnectorFactory</factory-class>
                              <param key="host" value="server1"/>
                              <param key="port" value="5445"/>
                          </connector>
                      </connectors>

       

                      <core-queues>
                          <queue name="Server1Topic">
                              <address>jms.topic.Server1Topic</address>
                              <durable>true</durable>
                          </queue>
                      </core-queues>

       

                      <bridges>
                          <bridge name="server1-topic-bridge">
                              <queue-name>Server1Topic</queue-name>
                              <forwarding-address>jms.topic.Server1Topic</forwarding-address>
                              <retry-interval>2500</retry-interval>
                              <user>user</user>
                              <password>password</password>
                              <static-connectors>
                                  <connector-ref>
                                      netty-server1-connector
                                  </connector-ref>
                              </static-connectors>
                          </bridge>
                      </bridges>

       

                      <jms-destinations>
                          <jms-topic name="Server1Topic">
                              <entry name="topic/Server1Topic"/>
                          </jms-topic>
                      </jms-destinations>
                  </hornetq-server>
              </subsystem>

       

      What I want to accomplish is to make sure messages posted on Server1Topic on server1 get to server1, even if JBoss on server1 is currently down. I thought using a durable topic with a bridge would be the way to do it. The way I have it configured above does not work as intended. If server1 is up before server2 then messages get passed from server2 as expected. If server1 is down the durable queue does not seem to do its job and any messages posted on the server2 Server1Topic disappear until server1 comes back up.

       

      Thanks.