activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From JRR <>
Subject Re: Do activemq-cpp connection questions.
Date Thu, 01 Dec 2011 01:38:35 GMT
Hi Tim,

I used gdb along with the code and I figured out the problem. It was indeed
fault, an ID10T error on my part.

I constructed an invalid broker URI string.

My string was as follows:

    std::string brokerURI =

The problem is with the closing paren. It should be

    std::string brokerURI =
        "failover:(tcp://*)*" // close out the tcp paren here
        "?initialReconnectDelay=10"        // before adding query parameters

Now... in my defense... the code in the simple producer example makes it
like it is suppose to reside at the end. This is what's in the file 

    std::string brokerURI =
//        "?wireFormat=openwire"
//        "&connection.useAsyncSend=true"
//        "&transport.commandTracingEnabled=true"
//        "&transport.tcpTracingEnabled=true"
//        "&wireFormat.tightEncodingEnabled=true"

So it LOOKS like we just uncomment these lines to add the query parameters.

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

View raw message