Sample Code: Logging
import com.sun.management.viper.services.Log;
import com.sun.management.viper.services.LogException;
private static final String MYLOGRESOURCES = "my.service.ServiceResources";
try {
Log logsvc = (Log) infra.getServiceByName(Log.class.getName());
logsvc.writeLog("BEANNAME",
Log.CATOGERY_APPLICATION,
Log.SEVERITY_ERROR,
"FailureSummaryKey1",
"FailureDetailKey1",
MYLOGRESOURCES,
null);
} catch (LogException le) {
System.err.println("can't log message");
} catch (VException ve) {
System.err.println("can't get log svc");
}