Looking at RxJava to build asynchronous support for our APIs. Right now we use jetty + JAX-RS @Path annotations and am not sure what is the correct approach to tie the incoming REST api call to RxJava APIs.
Basically this is in the context of freeing up the request thread until the response from DB is ready.
Looked at Vert.x but that requires java 7 and we are tied right now to java 6.
Looking for suggestions regarding the above. what are the typical approaches one takes to tie up the incoming http request to RxJava APIs.