
318 WebSphere Business Integrator Server Foundation V5.1 Handbook
private static EmitterFactory emitterFactory = null;
public AuditUtil() throws AuditException {
try {
initLookup();
} catch (NamingException ne) {
throw new AuditException(ne);
}
}
private void initLookup() throws NamingException {
if (eventFactory == null || emitterFactory == null) {
Context context = new InitialContext();
// Locate the event factory and emitter factory
eventFactory = (EventFactory) context.lookup(
"com/ibm/websphere/events/factory");
emitterFactory = (EmitterFactory) context.lookup(
"com/ibm/events/configuration/emitter/Default");
}
}
public void AuditLog(String auditText) thr ...