JSP read local JSON (cache?)
I am coding something with JSP v5, Latest GlassFish/Netbeans.
I am using Jackson 1.9.1,
I am reading a local JSON file, but if I modify the JSON file the changes
are not reflected in my web site, of course, I tried to use hard reload in
my browser. I think is a cache problem (server side, could not find
anything online), if I recompile my sources I can see the changes
reflected,
This is the code I am using.
ObjectMapper in_mapper = new ObjectMapper();
JsonNode rootNode = in_mapper.readTree(new BufferedReader(new
FileReader("c:\\file.json")));
I even tried this
ObjectMapper in_mapper = new ObjectMapper();
JsonNode rootNode = in_mapper.readTree(new File("c:\\file.json"));
And the behavior is the same.
No comments:
Post a Comment