what is the right way to initialize my database only once? See this example:
@Path("/")
public class Resource {
private static final Map<Integer,String> data = new ConcurrentHashMap<Integer,String>()
public Resource() {
data.put(1, "1");
data.put(2, "2");
...
}
}
For example if I delete entry 1, it will be present on the next request again.