Building reactive applications using Jakarta RESTful Web Services

Jakarta RESTful Web Services also has some great features for event-driven programming. This recipe shows you how you can use an asynchronous invoker from the request to write responses through callbacks.