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:
parent
cc86b2bb74
commit
0737b81f4d
1 changed files with 6 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue