tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Romain Manni-Bucau <rmannibu...@gmail.com>
Subject Re: JAX-RS 2.0 Apache CXF client with PoolingClientConnectionManager
Date Mon, 01 May 2017 15:36:18 GMT
Hi

Since cxf uses HtypUrlConnection by default you can set it up on the jvm.
If you want a more fine grained config you can have a look to
cxf-rt-transports-http-hc which enables to use httpcomponents under the
hood.


Le 1 mai 2017 17:23, "gnanapandithan" <m.gnanapandithan@gmail.com> a écrit :

> I am trying to implement JAX-RS 2.0 client using Apache CXF in Tomeeplus
> 7.0.2. I am able to connect service using below mentioned code. But I need
> to implement Pooling connection manager and other configuration. I am
> getting only Jersey client example not Apache CXF example.
>
> Can anybody help me to provide sample example for JAX-RS 2.0 client with
> Connection pooling with Apache Packages not with Jersey packages?
>
> **
>
> Jersey client example
> **
> http://www.theotherian.com/2013/08/jersey-client-2.0-
> httpclient-timeouts-max-connections.html
>
> **
>
> Sample JAX-RS 2.0 client code
> **:
>
> Client client = ClientBuilder.newClient();
> WebTarget target = client.target("http://localhost:8080/rs");
> target = target.path("service").queryParam("a", "avalue");
>
> Invocation.Builder builder = target.request();
> Response response = builder.get();
> Book book = builder.get(Book.class);
>
>
>
> --
> View this message in context: http://tomee-openejb.979440.
> n4.nabble.com/JAX-RS-2-0-Apache-CXF-client-with-
> PoolingClientConnectionManager-tp4681637.html
> Sent from the TomEE Users mailing list archive at Nabble.com.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message