The project that I am working on connects every end user to the database. We are using OracleOCIConnectionPooling for the logical connection. The issue here is for the error handling we are storing the error messages in the database. My question is " Is is good to load all the values at the application startup " so that it doesnt have to go the database each time when i want to retreive the error messages.
My team is opposing that, becuase they are saying that it will occupy the JVM memory and it slows down the application.
1. is that true?
2. when i deploy the application in a container where will be the JVM resides?
3.what is the difference between Server memory and JVM.
4.When I deploy the application in a container does all the class files will be in JVM? or it loads the class file whenever it needs.
5. If I create a HashMap and put all the error messages in the the HasMap , does it store it in the JVM? if its not JVM where does it stores.
For example in
struts we have
MessageResources messageResources=getResources(request);
String message = messageresource.getMessage(key);
and it stores key and the vlaue in the HashMap. Does that mean it stores in the JVM?