tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fm...@apache.org
Subject svn commit: r1125076 - /tuscany/sca-java-2.x/trunk/unreleased/modules/binding-comet-runtime/src/main/java/org/apache/tuscany/sca/binding/comet/runtime/handler/CometBindingHandler.java
Date Thu, 19 May 2011 19:51:26 GMT
Author: fmoga
Date: Thu May 19 19:51:26 2011
New Revision: 1125076

URL: http://svn.apache.org/viewvc?rev=1125076&view=rev
Log:
Use invokeAsync instead of invoke.

Modified:
    tuscany/sca-java-2.x/trunk/unreleased/modules/binding-comet-runtime/src/main/java/org/apache/tuscany/sca/binding/comet/runtime/handler/CometBindingHandler.java

Modified: tuscany/sca-java-2.x/trunk/unreleased/modules/binding-comet-runtime/src/main/java/org/apache/tuscany/sca/binding/comet/runtime/handler/CometBindingHandler.java
URL: http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/unreleased/modules/binding-comet-runtime/src/main/java/org/apache/tuscany/sca/binding/comet/runtime/handler/CometBindingHandler.java?rev=1125076&r1=1125075&r2=1125076&view=diff
==============================================================================
--- tuscany/sca-java-2.x/trunk/unreleased/modules/binding-comet-runtime/src/main/java/org/apache/tuscany/sca/binding/comet/runtime/handler/CometBindingHandler.java
(original)
+++ tuscany/sca-java-2.x/trunk/unreleased/modules/binding-comet-runtime/src/main/java/org/apache/tuscany/sca/binding/comet/runtime/handler/CometBindingHandler.java
Thu May 19 19:51:26 2011
@@ -127,9 +127,12 @@ public class CometBindingHandler {
 		final Operation operation = context.getOperation(url);
 
 		final Object[] args = decodeJsonDataForOperation(jsonData, operation);
-		Message msg = createMessageWithMockedCometReference(args, callbackMethod);
-		Object response = wire.invoke(operation, args);
-		System.out.println("Response: " + gson.toJson(response));
+		// Message msg = createMessageWithMockedCometReference(args,
+		// callbackMethod);
+		Message msg = new MessageImpl();
+		msg.setBody(args);
+		msg.setOperation(operation);
+		wire.invokeAsync(msg);
 	}
 
 	/**



Mime
View raw message