diff --git a/AlgebraicDataflowArchitectureModel/prototypes/JAX-RS/VotingSystem/Counts.java b/AlgebraicDataflowArchitectureModel/prototypes/JAX-RS/VotingSystem/Counts.java index a60f29e..f841a6f 100644 --- a/AlgebraicDataflowArchitectureModel/prototypes/JAX-RS/VotingSystem/Counts.java +++ b/AlgebraicDataflowArchitectureModel/prototypes/JAX-RS/VotingSystem/Counts.java @@ -15,7 +15,10 @@ @GET public Map getValue() { Map v0 = new HashMap<>(); - for (String aid: accounts.getValue().keySet()) { + Map> accounts_json = client.target("http://localhost:8080").path("/accounts").request().get(HashMap.class); + Map> accounts = new HashMap<>(); + accounts = accounts_json; + for (String aid: accounts.keySet()) { String vote = client.target("http://localhost:8080").path("/accounts."+aid+".vote").request().get(String.class); v0.put(aid,vote); }