activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r1393229 - /activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/transport/correlator/ResponseCorrelator.cpp
Date Tue, 02 Oct 2012 22:56:55 GMT
Author: tabish
Date: Tue Oct  2 22:56:54 2012
New Revision: 1393229

URL: http://svn.apache.org/viewvc?rev=1393229&view=rev
Log:
fix for: https://issues.apache.org/jira/browse/AMQCPP-429


Modified:
    activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/transport/correlator/ResponseCorrelator.cpp

Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/transport/correlator/ResponseCorrelator.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/transport/correlator/ResponseCorrelator.cpp?rev=1393229&r1=1393228&r2=1393229&view=diff
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/transport/correlator/ResponseCorrelator.cpp
(original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/transport/correlator/ResponseCorrelator.cpp
Tue Oct  2 22:56:54 2012
@@ -336,10 +336,17 @@ void ResponseCorrelator::dispose(const P
     }
 
     if (!requests.isEmpty()) {
+        Pointer<commands::BrokerError> exception(new commands::BrokerError);
+        exception->setExceptionClass("java.io.IOException");
+        exception->setMessage(error->getMessage());
+
+        Pointer<commands::ExceptionResponse> errorResponse(new commands::ExceptionResponse);
+        errorResponse->setException(exception);
+
         Pointer<Iterator<Pointer<FutureResponse> > > iter(requests.iterator());
         while (iter->hasNext()) {
             Pointer<FutureResponse> response = iter->next();
-            response->setResponse(Pointer<commands::Response>(new commands::ExceptionResponse));
+            response->setResponse(errorResponse);
         }
     }
 }



Mime
View raw message