Hi there,

if I am not missing the point, you could do that with a static route from m1 to m2. You should enable duplex = true, so that messages can go in both directions.

This is important as the advisory messages need to go from m1 to m2 and vice versa.

I have attached 2 files that contain a simple configuration for establishing a static route.


Best regards
Andreas




-------------------------------------------------------
Progress Software GmbH
Sitz der Gesellschaft: Agrippinawerft 26, 50678 Koeln;
Niederlassung: Fuerstenrieder Str. 279, 81377 Muenchen
Amtsgericht Koeln, HRB 15620; Geschaeftsfuehrung: David Ireland
-------------------------------------------------------
<!--
    Licensed to the Apache Software Foundation (ASF) under one or more
    contributor license agreements.  See the NOTICE file distributed with
    this work for additional information regarding copyright ownership.
    The ASF licenses this file to You under the Apache License, Version 2.0
    (the "License"); you may not use this file except in compliance with
    the License.  You may obtain a copy of the License at
   
    http://www.apache.org/licenses/LICENSE-2.0
   
    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
-->

<beans>

  <bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"/>

  <bean id="store" class="org.apache.activemq.store.amq.AMQPersistenceAdapter" >
    <property name="directory" value="~/tmp/broker1" />
  </bean>

  <broker xmlns="http://activemq.org/config/1.0"; 
    useJmx="false" 
    deleteAllMessagesOnStartup="true" 
    persistenceAdapter="#store" > 

    <transportConnectors>
      <transportConnector uri="tcp://localhost:61616"/>
    </transportConnectors>     
  </broker>
</beans>
<!--
    Licensed to the Apache Software Foundation (ASF) under one or more
    contributor license agreements.  See the NOTICE file distributed with
    this work for additional information regarding copyright ownership.
    The ASF licenses this file to You under the Apache License, Version 2.0
    (the "License"); you may not use this file except in compliance with
    the License.  You may obtain a copy of the License at
   
    http://www.apache.org/licenses/LICENSE-2.0
   
    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
-->
<beans>

  <bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"/>

  <bean id="store" class="org.apache.activemq.store.amq.AMQPersistenceAdapter" >
    <property name="directory" value="~/tmp/broker2" />
  </bean>

  <broker xmlns="http://activemq.org/config/1.0"; 
    useJmx="false" 
    deleteAllMessagesOnStartup="true" 
    persistenceAdapter="#store" > 

    <transportConnectors>
      <transportConnector uri="tcp://localhost:61618"/>
    </transportConnectors>     

    <networkConnectors>
      <networkConnector uri="static:(tcp://localhost:61616)" duplex="true" />
    </networkConnectors>
  </broker>

</beans>


On Apr 16, 2009, at 6:46 AM, kms wrote:


I am trying to configure a system as follows:-

publisher -> AMQ on m1 --> AMQ on m2 --> subscriber
where m1 and m2 are connected over a WAN and the connection is intermittent. Also, m1 does not have a public IP, and hence m2 cannot pull messages from
m1.
m1 has to sense that the network connection is up and push the messages to
m2.

I could not figure out the right configuration to use for this.

pointers in the right direction (and even more so, configuration samples)
would be highly
appreciated.

Thanks
--
View this message in context: 
http://www.nabble.com/distributed-configuration-with-intermittent-network-connection-tp23071355p23071355.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


---
Mit freundlichen Grüssen - Kind Regards
Andreas Gies
Principal Consultant
Open Source Center of Competence

Progress Software GmbH
Agrippinawerft 26
50678 Köln

E-Mail          ag...@progress.com
Direct Line     +49 (0)9953 980349
Mobile          +49 (0)170 5759611
Skype           +44 (0)20 3239 2922
Skype           +353 (0)1 443 4971
Skype           +1 (0)781 262 0168

http://www.progress.com
http://fusesource.com
http://open-source-adventures.blogspot.com

Reply via email to