When no other event factory is configured for a logger, WebSphere Application Server uses its default event factory for the creation of Common Base Events. The content handler that is associated with the default event factory populates fields as follows:
Set this value only if the CommonBaseEvent.globalInstanceId value is null before the completeEvent method is called.
Set this value only if the CommonBaseEvent.msg message is null before the completeEvent method is called.
Set this value only if the CommonBaseEvent.severity value is null before the completeEvent method is called.
Set this value only if the CommonBaseEvent.ComponentIdentification.component is null before the completeEvent method is called.
Set this value only if the CommonBaseEvent.ComponentIdentification.componentIdType value is null before the completeEvent method is called.
Set this value only if the CommonBaseEvent.ComponentIdentification.executionEnvironment value is null before the completeEvent method is called.
Set this value only if the CommonBaseEvent.ComponentIdentification.instanceId value is null before the completeEvent method is called. Set only in a server environment because this value is ignored in a client application.
Set this value only if both the CommonBaseEvent.ComponentIdentification.location and the CommonBaseEvent.ComponentIdentification.locationType values are null before the completeEvent method is called.
Set this value only if both the CommonBaseEvent.ComponentIdentification.location and the CommonBaseEvent.ComponentIdentification.locationType values are null before the completeEvent method is called.
Set this value only if the CommonBaseEvent.ComponentIdentification.processId value is null before the completeEvent method is called
Set this value only if the CommonBaseEvent.ComponentIdentification.subComponent values is null before the completeEvent method is called and both the sourceClassName and the sourceMethodName names are set.
Set this value only if the CommonBaseEvent.ComponentIdentification.threadId values is null before the completeEvent value is called.
Set this value only if the CommonBaseEvent.ComponentIdentification.componentType values is null before the completeEvent method is called.
Set this value only if the CommonBaseEvent.msg value is null before the completeEvent method is called.
Set this value only if the CommonBaseEvent.Situation value is null before the completeEvent method is called.
Set this value only if the CommonBaseEvent.Situation value is null before the completeEvent method is called.
Set this value only if the CommonBaseEvent.Situation value is null before the completeEvent method is called.
Set this value only if the CommonBaseEvent.Situation value is null before the completeEvent method is called.
The sourceComponentIdentification value is populated if no reporterComponentIdentification ID exists when the completeEvent method is invoked on the content handler. Otherwise, the reporterComponentIdentification ID is populated instead.
EventFactory eventFactory = EventFactoryContext.getInstance().getEventFactoryHome().getEventFactory(factoryName);where factoryName is the name of the Common Base Event template that you want to use with the factory.
You can also specify the factoryName value as a configuration parameter for a logger.
Related information
Logger.properties file
Common Base Event factory