Cool, problem solved, thank you so much!

On Wed, Apr 22, 2015 at 3:11 AM, Romain Manni-Bucau <[email protected]>
wrote:

> WebtargetImpl has a client if a request was created:
>
> final WebTarget target = client.target(url);
> final Invocation.Builder request = target.request();
> final HTTPConduit httpConduit =
> WebClient.getConfig(target).getHttpConduit();
> httpConduit.getClient().setReceiveTimeout(7000);
> httpConduit.getClient().setConnectionTimeout(7000);
> final UserDto userDto = new UserDto(1, null, null);
> UserDto response = request.post(Entity.entity(userDto,
> MediaType.APPLICATION_JSON), UserDto.class);
>
>
>
> Romain Manni-Bucau
> @rmannibucau <https://twitter.com/rmannibucau> |  Blog
> <http://rmannibucau.wordpress.com> | Github <
> https://github.com/rmannibucau> |
> LinkedIn <https://www.linkedin.com/in/rmannibucau> | Tomitriber
> <http://www.tomitribe.com>
>
> 2015-04-21 19:21 GMT+02:00 sgjava <[email protected]>:
>
> > Here's a test project on GitHib
> https://github.com/sgjava/tomee-jaxrs-test
> > .
> > It's a very simple JAX-RS project testUserInfoNoTimeout works fine, but
> > testUserInfoTimeout fails with "Not a valid Client:. Please take a
> look...
> >
> >
> >
> > --
> > View this message in context:
> >
> http://tomee-openejb.979440.n4.nabble.com/JAX-RS-POJO-mapping-tp4674454p4674558.html
> > Sent from the TomEE Users mailing list archive at Nabble.com.
> >
>



-- 
Steven P. Goldsmith

Reply via email to