From 0737b81f4da571d9ad7d14af925bb6a626e44e33 Mon Sep 17 00:00:00 2001 From: fmoga Date: Thu, 19 May 2011 19:51:26 +0000 Subject: Use invokeAsync instead of invoke. git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1125076 13f79535-47bb-0310-9956-ffa450edef68 --- .../sca/binding/comet/runtime/handler/CometBindingHandler.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'sca-java-2.x/trunk') diff --git a/sca-java-2.x/trunk/unreleased/modules/binding-comet-runtime/src/main/java/org/apache/tuscany/sca/binding/comet/runtime/handler/CometBindingHandler.java b/sca-java-2.x/trunk/unreleased/modules/binding-comet-runtime/src/main/java/org/apache/tuscany/sca/binding/comet/runtime/handler/CometBindingHandler.java index aa99051f2d..dfd4091488 100644 --- a/sca-java-2.x/trunk/unreleased/modules/binding-comet-runtime/src/main/java/org/apache/tuscany/sca/binding/comet/runtime/handler/CometBindingHandler.java +++ b/sca-java-2.x/trunk/unreleased/modules/binding-comet-runtime/src/main/java/org/apache/tuscany/sca/binding/comet/runtime/handler/CometBindingHandler.java @@ -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); } /** -- cgit v1.2.3