activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From spamtrap <>
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 =
     pConnection = pConnectionFactory->createConnection();
   } catch (cms::CMSException &ex)
      fprintf(stderr, "CMSException: \n");
----- cut ------

ex.printStackTrace prints nothing even though I am using the following
connection string (broker URI):

How can I get more information about this problem?

View raw message