What CallBack URL do I specify ?
You are correct, it is not necessarily straightforward to marshal callback notifications that REST sends to client code.
The async operations provided in the library are really intended for GUI applications, simply so that the HTTP calls don't lock the user interface; there is no particular benefit to using them server side, as the library should (I believe) take advantage of Java's non blocking IO.
So currently you need to write your own solution for marshalling callbacks to the correct place in code. You can either do this by having an HTTP listener in the same JVM (I use the Apache Commons HTTP libraries), or by using some kind of signalling - a socket, a named pipe, even a database table. Which of these you choose is up to you, and how you event these to your code is also up to you.
There are improvements being worked on to make this much easier within the REST libraries, but for now I'm afraid pulling this together is something you have to architect for yourself - currently the libraries really just help you construct requests to the Ribbit Server and manage user sessions, but not track call state.
Cheers
Tim

