ok, finally it worked.. but my charset problem remains:
http://fgaucho.dyndns.org:8080/arena-http/cejug/user/0/88?competition=PUJ-CE%2007
latest code:
@GET
@Produces( { MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON })
@Path("{offset}/{limit}")
public Response selectAllByCompetition(
@PathParam("institution") String institution,
@PathParam("offset") int offset, @PathParam("limit") int limit,
@QueryParam("competition") String name) {
Collection<PujUserDetailsEntity> users = detailsFacade
.readAllByCompetition(offset, limit, institution, name);
GenericEntity<Collection<PujUserDetailsEntity>> entity = new
GenericEntity<Collection<PujUserDetailsEntity>>(
users) {
};
return Response.ok(entity).header("charset", "utf-8").build();
}
I will check the data in the MySql.. perhaps the problem is there...