{"id":21100287,"url":"https://github.com/pscheidl/jax-rs-application-server-test","last_synced_at":"2025-03-14T08:09:30.164Z","repository":{"id":88459453,"uuid":"88432652","full_name":"Pscheidl/jax-rs-application-server-test","owner":"Pscheidl","description":"General test of JAX-RS Client behavior in several application servers","archived":false,"fork":false,"pushed_at":"2017-04-17T06:12:24.000Z","size":171,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-21T02:30:00.749Z","etag":null,"topics":["java-ee","jax-rs","jax-rs-sample"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Pscheidl.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-04-16T17:58:41.000Z","updated_at":"2017-04-17T05:44:47.000Z","dependencies_parsed_at":null,"dependency_job_id":"438628b3-9384-4e3b-ba43-975f43c7c53e","html_url":"https://github.com/Pscheidl/jax-rs-application-server-test","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pscheidl%2Fjax-rs-application-server-test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pscheidl%2Fjax-rs-application-server-test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pscheidl%2Fjax-rs-application-server-test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pscheidl%2Fjax-rs-application-server-test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Pscheidl","download_url":"https://codeload.github.com/Pscheidl/jax-rs-application-server-test/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243544662,"owners_count":20308169,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["java-ee","jax-rs","jax-rs-sample"],"created_at":"2024-11-19T23:09:24.578Z","updated_at":"2025-03-14T08:09:30.154Z","avatar_url":"https://github.com/Pscheidl.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JAX-RS deserialization client test\n\n## Invoking\n\nInvoke the REST endpoint `/money` via HTTP GET. On localhost with unmodified context path:\n\nGET `http://localhost:8080/jaxrs-client-1.0/money\n\n###Example response\n\n```json\n{\n  \"base\": \"EUR\",\n  \"date\": \"2017-04-13\",\n  \"rates\": {\n    \"AUD\": 1.4027,\n    \"BGN\": 1.9558,\n    \"BRL\": 3.3277,\n    \"CAD\": 1.4069,\n    \"CHF\": 1.0686,\n    \"CNY\": 7.3227,\n    \"CZK\": 26.704,\n    \"DKK\": 7.4376,\n    \"GBP\": 0.84763,\n    \"HKD\": 8.2652,\n    \"HRK\": 7.4255,\n    \"HUF\": 312.55,\n    \"IDR\": 14092,\n    \"ILS\": 3.8841,\n    \"INR\": 68.492,\n    \"JPY\": 116.01,\n    \"KRW\": 1202.9,\n    \"MXN\": 19.766,\n    \"MYR\": 4.6905,\n    \"NOK\": 9.1033,\n    \"NZD\": 1.5178,\n    \"PHP\": 52.584,\n    \"PLN\": 4.245,\n    \"RON\": 4.5189,\n    \"RUB\": 59.935,\n    \"SEK\": 9.582,\n    \"SGD\": 1.4845,\n    \"THB\": 36.503,\n    \"TRY\": 3.8991,\n    \"USD\": 1.063,\n    \"ZAR\": 14.38\n  }\n}\n```\n\n## Problem with pools\n\nDifferent JAX-RS implementations use different pooling strategy. This results in different reusability of WebTarget/Client.\n\n- Deployment to an application server with Jersey as a JAX-RS implementation will work flawlessly, because Jersey uses HTTP connection pool internally by default. Example of such application server is Payara.\n- Deployment to an application server with Resteasy as a JAX-RS implementation will cause an exception.\n\n### Resteasy exception\n```text\njava.lang.IllegalStateException: Invalid use of BasicClientConnManager: connection still allocated.\nMake sure to release the connection before allocating another one.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpscheidl%2Fjax-rs-application-server-test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpscheidl%2Fjax-rs-application-server-test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpscheidl%2Fjax-rs-application-server-test/lists"}