You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2009/08/05 08:18:08 UTC

svn commit: r801074 - /camel/trunk/tests/camel-itest/src/test/java/org/apache/camel/itest/async/HttpAsyncCallbackTest.java

Author: davsclaus
Date: Wed Aug  5 06:18:08 2009
New Revision: 801074

URL: http://svn.apache.org/viewvc?rev=801074&view=rev
Log:
CAMEL-1876: Added asyncCallback methods to ProducerTemplate to do async messaging with callbacks being invoked when the message is done. This alows client to not hazzle with how to wait for the response as the callback is invoked when the message is done.

Modified:
    camel/trunk/tests/camel-itest/src/test/java/org/apache/camel/itest/async/HttpAsyncCallbackTest.java

Modified: camel/trunk/tests/camel-itest/src/test/java/org/apache/camel/itest/async/HttpAsyncCallbackTest.java
URL: http://svn.apache.org/viewvc/camel/trunk/tests/camel-itest/src/test/java/org/apache/camel/itest/async/HttpAsyncCallbackTest.java?rev=801074&r1=801073&r2=801074&view=diff
==============================================================================
--- camel/trunk/tests/camel-itest/src/test/java/org/apache/camel/itest/async/HttpAsyncCallbackTest.java (original)
+++ camel/trunk/tests/camel-itest/src/test/java/org/apache/camel/itest/async/HttpAsyncCallbackTest.java Wed Aug  5 06:18:08 2009
@@ -68,7 +68,7 @@
         private List<String> data = new ArrayList<String>();
 
         @Override
-        public void onDone(Exchange exchange) {
+        public void onComplete(Exchange exchange) {
             // this method is invoked when the exchange was a success and we can get the response
             String body = exchange.getOut().getBody(String.class);
             data.add(body);