Re: [Resteasy-users] RestEasy client in a multi-threaded invironment

2014-01-29 Thread Gunnar Morling
Perfect, works like a charm! Thanks again for your help, --Gunnar 2014/1/29 Bill Burke > Yeah, docs fell through the cracks on that: > > org.jboss.resteasy.util.BasicAuthHelper > > org.jboss.resteasy.client.jaxrs.BasicAuthentication > > You can use the filter if the same user is invoking in

Re: [Resteasy-users] RestEasy client in a multi-threaded invironment

2014-01-29 Thread Bill Burke
Yeah, docs fell through the cracks on that: org.jboss.resteasy.util.BasicAuthHelper org.jboss.resteasy.client.jaxrs.BasicAuthentication You can use the filter if the same user is invoking in separate threads. Otherwise you'll have to generate the header per request. On 1/29/2014 1:17 PM, Gun

Re: [Resteasy-users] RestEasy client in a multi-threaded invironment

2014-01-29 Thread Gunnar Morling
Basic Auth; Do you have a pointer to these filters/utilities? That sounds like what I need. Is there an example or test somewhere (couldn't find that in the ref guide)? Thanks, --Gunnar 2014/1/29 Bill Burke > pre-emptive for what protocol? Digest? For basic auth, resteasy has a > filter

Re: [Resteasy-users] RestEasy client in a multi-threaded invironment

2014-01-29 Thread Bill Burke
pre-emptive for what protocol? Digest? For basic auth, resteasy has a filter or utility methods you can use instead. On 1/29/2014 12:36 PM, Gunnar Morling wrote: > I'm invoking an authenticated endpoint and am using HttpContext to pass > in an AuthCache instance which is needed to enable pre-em

Re: [Resteasy-users] RestEasy client in a multi-threaded invironment

2014-01-29 Thread Gunnar Morling
I'm invoking an authenticated endpoint and am using HttpContext to pass in an AuthCache instance which is needed to enable pre-emptive authentication. Is there any alternative way for setting credentials and have them pre-emptively sent which doesn't require to touch HttpClient specifics? --Gunna

Re: [Resteasy-users] RestEasy client in a multi-threaded invironment

2014-01-29 Thread Bill Burke
What is the HttpContext used for anyways? Never used it. For multithreaded access, I've wrote and used the extension methods to ResteasyClientBuilder to configure connection pools and such. I honestly am trying to hide Apache HTTP Client with Resteasy (and in the future JAX-RS) apis. On 1/29

[Resteasy-users] RestEasy client in a multi-threaded invironment

2014-01-29 Thread Gunnar Morling
Hi, I'm working with a RestEasy client (proxy) which should be accessible from several threads in parallel. >From the reference guide [1] I learned that I need to configure a custom ApacheHttpClient4Engine instance so it uses a thread-safe HTTP client connection manager. This works as expected bu