I have a program (deployed to JBOSS 5) that reads parameters from excel file.
The User may add/remove parameters from the excel file. However the code does not recognize the modified excel file until jboss restarts.
Should I make a conf. change or should I change something in the code to get the parameter changes in my code?
File file = new File(configurationFileName);
Workbook workbook;
try {
workbook = Workbook.getWorkbook(file);
Sheet sheet =
workbook.getSheet(Constants.CONFIGURATION_SHEET_TAX_RATES);
if (sheet != null) {
for (int columnIndex = 0; columnIndex < sheet.getColumns();
columnIndex++) {
String headerValue =
getCellContents(sheet, columnIndex, 0);
}
}
}