Use invokeAsync instead of invoke.

git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1125076 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
fmoga 2011-05-19 19:51:26 +00:00
parent cc86b2bb74
commit 0737b81f4d

View file

@ -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);
}
/**