Skip to content

Commit 611c785

Browse files
committed
document synch XHR limitation
1 parent 4f1496e commit 611c785

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

README

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ example usage:
1313
var nodejava=require('./jabsorb');
1414

1515
// create jabsorb (json-rpc) client for talking to Java
16-
var java = new nodejava.client("http://your-url-to-jabsorb-server");
16+
var java = new nodejava.client(["serverObjRef.serverMethodName", "exposedObject.methodCall", "etc.etc"], http://your-url-to-jabsorb-server");
1717

1818
// call the remote Java server via json-rpc
1919
java.exposedObject.methodCall(
@@ -35,3 +35,7 @@ java.exposedObject.methodCall(
3535
}, argsGoHere, arg2, arg3, etc);
3636

3737

38+
limitations:
39+
At this time, only asychronous calls are supported (this is a limitation of the XHR port that is being used.)
40+
But you shouldn't be doing synchronous calls anyway, right?
41+

jabsorb.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1076,6 +1076,7 @@ var JSONRpcClient=(function()
10761076
/* Unmarshall the response */
10771077
if (status != 200)
10781078
{
1079+
console.log ('code: ' + status + ' message: ' + statusText);
10791080
throw new JSONRpcClient.Exception({ code: status, message: statusText });
10801081
}
10811082
return this.unmarshallResponse(data);

0 commit comments

Comments
 (0)