cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Canning, Charles" <ccann...@stubhub.com>
Subject Jax-rs 2 client with clustering/failover features?
Date Mon, 22 Jun 2015 19:51:50 GMT
Given your example code:

Client client = ClientBuilder.newBuilder().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);

Is there a way to configure the builder to use a failover strategy without having to code
it directly for each client?

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