activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From appi03 <>
Subject connection issues
Date Thu, 18 Oct 2007 20:47:32 GMT

If i am using the ActiveMQ-CPP library, does it matter what activemq broker
version do i use. Currently I am using the latest release, which is 4.1.1. I
pretty much grabbed the example from the website. Here is the configuration:

<broker brokerName="localhost" useJmx="true" persistent="false"

          <policyEntry topic="FOO.>">
              <strictOrderDispatchPolicy />
              <lastImageSubscriptionRecoveryPolicy />


        <!-- <journaledJDBC journalLogFiles="5"
dataDirectory="${activemq.base}/activemq-data"/> -->
      <!-- To use a different datasource, use the following syntax : -->
      <journaledJDBC journalLogFiles="5" dataDirectory="../activemq-data"
      <transportConnector name="openwire" uri="tcp://localhost:61616" />
      <!-- discoveryUri="multicast://default"/> -->
      <transportConnector name="ssl"     uri="ssl://localhost:61617"/>
      <transportConnector name="stomp"   uri="stomp://localhost:61613"/>

      <!-- by default just auto discover the other brokers -->
      <!-- <networkConnector name="default-nc" uri="multicast://default"
failover="false"/> -->

      <networkConnector name="host1"
uri="static://(tcp://" failover="true" />
      <networkConnector name="host1 and host2"
uri="static://(tcp://host1:61616,tcp://host2:61616)" failover="true"/>
The reason why I ask is I have a consumer and producer running on two
different computers connected via LAN and for some reason I keep loosing the
connection. Sometimes i successfully reconnects and I am able to receive the
messages but of the time it stops and the consumer is unable to receive any

I feel like I am missing something here. 

I would appreciate any help.

View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message