You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by pwalter <pa...@nasa.gov> on 2014/10/09 19:48:06 UTC
Configuring ActiveMQ-CPP
Wanted to know what the required activemq.xml configuration is for
ActiveMQ-CPP. We have a Primary (localhost:61617), Backup (localhost:61617)
and another Network server (localhost:61618) that both primary and backup
will connect.
For Primary:
<transportConnectors>
<transportConnector
uri="tcp://0.0.0.0:61616?<key>=<value>"/>
</transportConnectors>
For Backup:
<transportConnectors>
<transportConnector
uri="tcp://0.0.0.0:61617?<key>=<value>"/>
</transportConnectors>
For both Primary & Basckup:
<networkConnectors>
<networkConnector
uri="static:(tcp://localhost:61618?<key>=<value>"/>
</networkConnectors>
For Network Server:
<transportConnectors>
<transportConnector
uri="tcp://0.0.0.0:61618?<key>=<value>"/>
</transportConnectors>
What should the <key>=<value> pairs for each of these specific to ActiveMQ
CMS/CPP.
thanks!!!
--
View this message in context: http://activemq.2283324.n4.nabble.com/Configuring-ActiveMQ-CPP-tp4686268.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: Configuring ActiveMQ-CPP
Posted by pwalter <pa...@nasa.gov>.
For the ActiveMQ servers: Primary (localhost:61616) and Backup
(localhost:61617) (for CMS clients) are there any changes needed in the
server activemq.xml.
When I use CMS (C++) client with the following config:
failover:(tcp://localhost:61616,tcp://localhost:61617)?randomize=false
The randomize=false is not working. For the consumer client subscribing to
message topic A and producer sending message topic A. The backup server is
sometimes receiving the message even though the primary server is alive.
But, with java clients I do not get this behavior. Messages are always being
sent to primary server.
thanks!!!
--
View this message in context: http://activemq.2283324.n4.nabble.com/Configuring-ActiveMQ-CPP-tp4686268p4686297.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: Configuring ActiveMQ-CPP
Posted by pwalter <pa...@nasa.gov>.
So for the servers (primary, backup) I don't need any key=value pairs?
For Primary:
<transportConnectors>
<transportConnector uri="tcp://0.0.0.0:61616"/>
</transportConnectors>
For Backup:
<transportConnectors>
<transportConnector uri="tcp://0.0.0.0:61617"/>
</transportConnectors>
For both Primary & Basckup:
<networkConnectors>
<networkConnector uri="static:(tcp://localhost:61618?"/>
</networkConnectors>
For Network Server:
<transportConnectors>
<transportConnector uri="tcp://0.0.0.0:61618?"/>
</transportConnectors>
For the client I would need to provide the following:
failover:(tcp://localhost:61616,tcp://localhost:61617)?randomize=false
ANY OTHER Server and/or client changes?
thanks
--
View this message in context: http://activemq.2283324.n4.nabble.com/Configuring-ActiveMQ-CPP-tp4686268p4686273.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: Configuring ActiveMQ-CPP
Posted by Timothy Bish <ta...@gmail.com>.
On 10/09/2014 01:48 PM, pwalter wrote:
> Wanted to know what the required activemq.xml configuration is for
> ActiveMQ-CPP. We have a Primary (localhost:61617), Backup (localhost:61617)
> and another Network server (localhost:61618) that both primary and backup
> will connect.
>
> For Primary:
> <transportConnectors>
> <transportConnector
> uri="tcp://0.0.0.0:61616?<key>=<value>"/>
> </transportConnectors>
>
> For Backup:
> <transportConnectors>
> <transportConnector
> uri="tcp://0.0.0.0:61617?<key>=<value>"/>
> </transportConnectors>
>
> For both Primary & Basckup:
> <networkConnectors>
> <networkConnector
> uri="static:(tcp://localhost:61618?<key>=<value>"/>
> </networkConnectors>
>
> For Network Server:
> <transportConnectors>
> <transportConnector
> uri="tcp://0.0.0.0:61618?<key>=<value>"/>
> </transportConnectors>
>
> What should the <key>=<value> pairs for each of these specific to ActiveMQ
> CMS/CPP.
>
>
> thanks!!!
>
>
>
>
>
>
>
> --
> View this message in context: http://activemq.2283324.n4.nabble.com/Configuring-ActiveMQ-CPP-tp4686268.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
You should never need to do anything specific in the ActiveMQ config for
the CMS client.
--
Tim Bish
Sr Software Engineer | RedHat Inc.
tim.bish@redhat.com | www.redhat.com
skype: tabish121 | twitter: @tabish121
blog: http://timbish.blogspot.com/