I'm a beginner in JEE development. I have just finished a web application that I'm going to deploy in a server.
It's a new level for me; it's not just a simple application that I can run for 10 min, etc.
My question is for the quality of code. Of course we all know that a piece of code that works does not mean it's correct. In my managed beans, I use @postConstruct
, for example:
@PostConstruct
public void post() {
listChaletss = chaletService.getAllChalet();
for (Chalet it : listChaletss) {
if (it.getType().equals("permanent")) {
listChaletp.add(it);
}
}
allPeriodes = periodeService.getAllPeriodes();
// System.out.println("size periode" + allPeriodes.size());
for (Chalet order : listChaletss) {
order.setEditable(false);
}
}
I'm wondering if someone can determine if we can face any memory problems using this application. Some piece of code and any help from some Java experts will be welcomed.