summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/trunk
diff options
context:
space:
mode:
authorfmoga <fmoga@13f79535-47bb-0310-9956-ffa450edef68>2011-05-19 19:51:26 +0000
committerfmoga <fmoga@13f79535-47bb-0310-9956-ffa450edef68>2011-05-19 19:51:26 +0000
commit0737b81f4da571d9ad7d14af925bb6a626e44e33 (patch)
tree615caabcceb64fda45a2011f76b40001553334bc /sca-java-2.x/trunk
parentcc86b2bb748c5be20008046fba1b50ddbe9e0f8f (diff)
Use invokeAsync instead of invoke.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1125076 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk')
-rw-r--r--sca-java-2.x/trunk/unreleased/modules/binding-comet-runtime/src/main/java/org/apache/tuscany/sca/binding/comet/runtime/handler/CometBindingHandler.java9
1 files changed, 6 insertions, 3 deletions
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);
}
/**