// application id
String appId = getApplicationId(wsep);
// message trace manager
MessageTraceMgr traceMgr = MessageTraceMgr.getInstance();
// monitoring level changed
if ( (newMonitoring != null) && (oldMonitoring != null)
&& (!newMonitoring.equals(oldMonitoring)) ) {
// monitoring level is changed to HIGH
if ("HIGH".equalsIgnoreCase(newMonitoring)) {
traceMgr.enable(appId, epName, historySize);
// monitoirng level is changed from HIGH to LOW or OFF
} else if ("HIGH".equalsIgnoreCase(oldMonitoring)) {
traceMgr.disable(appId, epName);
}
} else {
// old history size
String oldHs = oWsep.getMaxHistorySize();
int oldHistorySize = 0;
if (oldHs != null) {
oldHistorySize = Integer.parseInt(oldHs);
}
// history size has changed and monitoring level is HIGH
if ((historySize != oldHistorySize)
&& ("HIGH".equalsIgnoreCase(newMonitoring))) {
traceMgr.setMessageHistorySize(appId, epName,
historySize);
}
}
AppServWSMonitorLifeCycleProvider aplifeProv =