activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From spamtrap <nospam.1.friedbad...@spamgourmet.com>
Subject ActiveMQ-CPP Exception connecting to broker
Date Thu, 10 Mar 2016 15:37:55 GMT
[ActiveMQ-CPP v3.9.0]

We have a c++ program which connects to a broker, sends a message to a
topic and then closes the connections & exits.  Every now and then it
fails to connect reporting a "Address already in use" exception
(based on ex.what()).

The code is like this:

----- cut ------
   try {
     pConnectionFactory =
cms::ConnectionFactory::createCMSConnectionFactory(
             brokerURI);
     pConnection = pConnectionFactory->createConnection();
   } catch (cms::CMSException &ex)
   {
      fprintf(stderr, "CMSException: \n");
      ex.printStackTrace();
      ...
   }
----- cut ------

ex.printStackTrace prints nothing even though I am using the following
connection string (broker URI):
"tcp://localhost:61616?wireFormat.stackTraceEnabled=true"

How can I get more information about this problem?



Mime
View raw message