I have resource bundle as Java class that read values from database. When i update db i need to reload bundle, but i don’t know how. Anybody helps ?
package model.helpers;
public class Messages_en extends ListResourceBundle {
protected Object[][] getContents() {
// from DB
// ...
}
}
In view i use bundle as below:
<f:loadBundle basename="model.helpers.Messages" var="m" />
OR
Calling this method will reload the resources, it will refresh the bundle