Hi EGs,
For asynchronous server-server communication we need a possibility to pass the ExecutorService (from concurrency utilities) to the JAX-RS client. All threads should be managed and monitored by the application server.
IMO there should be a standard way to pass the ExecutorService to the JAX-RS client during the construction as well as an optional parameter to the asynchronous methods.
See e.g.
https://docs.oracle.com/javase/8/docs/api/java/util/concurrent/CompletableFuture.html and particularly the async methods.
Any thoughts?
thank you for the great work so far,
—adam