jax-rs client is not creating jax-rs cookie

Hi i have two separate docker container running. one container runs an application which has the following rest-resource

public Response jaxrsSaveCookie(@QueryParam("name") String name, @QueryParam("value") String value) {
logger.info("jaxrsSaveCookie [name: " + name + ", value: " + value + "]");

NewCookie cookie = new NewCookie(name, value, "/", "", "my cookie", NewCookie.DEFAULT_MAX_AGE, false);

return Response.ok("OK").cookie(cookie).build();

and the other container runs an application which tries to call this resource via jax-rs client

  • Docker FATA[0000] on Mac
  • Docker: device mapper file system gets corrupted
  • Logstash Configuration file in Docker ELK Compose file
  • Docker error on Windows 7 “Client.Timeout exceeded while awaiting headers”
  • redirect log files created in a docker container to stdout / stderr
  • docker API v2 - how to tag and push an image
  • public String getResponse(String urlString, MultivaluedHashMap<String, Object> headers) {
    if (headers == null)
        headers = new MultivaluedHashMap<>();
    Client client = ClientBuilder.newClient();
    client.property("CONNECTION_TIMEOUT", 5000).property("RECEIVE_TIMEOUT", 5000);
    WebTarget target = client.target(urlString);
    String response = target.request(MediaType.TEXT_PLAIN).headers(headers).get(String.class);
    return response;

    When i call the rest-resource “jaxrsSaveCookie” from my browser directly the cookie is being created. But when i am trying to use my jax-rs client over the browser which makes a rest call to the second docker container with the resource “jaxrsSaveCookie” the cookies are not being created.

    Can somebody please help?

  • Running Remote Bamboo Agents on Demand Using Docker
  • How do i get postgres data to persist using docker-compose
  • Within Docker VM, Gulp-Watch Seems to not work well on volumes hosted from the host OS
  • Resources are missing from JAR file after repackage with spring boot maven plugin
  • Can't access SQL db inside Docker container
  • Download all dependencies, plugin dependencies, compilers, etc. with Maven?
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.