users@jersey.java.net

[Jersey] Re: ExecutorServiceProvider Questions

From: Michal Gajdos <michal.gajdos_at_oracle.com>
Date: Mon, 29 Jun 2015 20:21:12 +0200

Hi Robert,

provided code snippet looks valid. One question though – Have you annotated MyExecutorProvider with @ClientAsyncExecutor [1]?

[1] https://jersey.java.net/apidocs/latest/jersey/org/glassfish/jersey/client/ClientAsyncExecutor.html

Michal

> On 29 Jun 2015, at 19:38, Robert DiFalco <robert.difalco_at_gmail.com> wrote:
>
> I'm having a difficult time figuring out how to use my own pool for Async Client calls. Currently I have this:
>
> Client client = ClientBuilder.newClient();
> client.register(new MyExecutorProvider());
>
> But this doesn't seem to be working correctly. Anything obvious I am doing wrong here?