I have implemented a REST api using Wildfly 8.1. The endpoint is something like:
/rest/v1/users
In my implementation for every request I read users from the db and give back a json representation of the collection.
The strange think is that if I call the api I don't get a unique result for the collection (i.e., for each request it randomly provides one betweenn the older values and new values). This goes on until I restart the server.
The db interface is correct, so my guess is that Wildfly is caching the previous data, is it possible and why does it provides different results for different calls?