When no other event factory is configured for a logger, the WebSphere Application Server uses its default event factory for creation of Common Base Events. The content handler associated with the default event factory populates fields as follows:
only set if CommonBaseEvent.globalInstanceId was null before completeEvent() was called
only set if CommonBaseEvent.msg was null before completeEvent() was called
only set if CommonBaseEvent.severity was null before completeEvent() was called
only set if CommonBaseEvent.ComponentIdentification.component was null before completeEvent() was called
only set if CommonBaseEvent.ComponentIdentification.componentIdType was null before completeEvent() was called
only set if CommonBaseEvent.ComponentIdentification.executionEnvironment was null before completeEvent() was called
only set if CommonBaseEvent.ComponentIdentification.instanceId was null before completeEvent() was called only set in a server environment (ignored in a client application)
only set if both CommonBaseEvent.ComponentIdentification.location and CommonBaseEvent.ComponentIdentification.locationType were null before completeEvent() was called
only set if both CommonBaseEvent.ComponentIdentification.location and CommonBaseEvent.ComponentIdentification.locationType were null before completeEvent() was called
only set if CommonBaseEvent.ComponentIdentification.processId was null before completeEvent() was called
CommonBaseEvent.ComponentIdentification.subComponent was null before completeEvent() was called and both sourceClassName and sourceMethodName were set
only set if CommonBaseEvent.ComponentIdentification.threadId was null before completeEvent() was called
only set if CommonBaseEvent.ComponentIdentification.componentType was null before completeEvent() was called
only set if CommonBaseEvent.msg was null before completeEvent() was called
only set if CommonBaseEvent.Situation was null before completeEvent() was called
only set if CommonBaseEvent.Situation was null before completeEvent() was called
only set if CommonBaseEvent.Situation was null before completeEvent() was called
only set if CommonBaseEvent.Situation was null before completeEvent() was called
Note that the sourceComponentIdentification is populated if no reporterComponentIdentification exists when completeEvent is invoked on the ContentHandler, otherwise the reporterComponentIdentification will be populated instead.
EventFactory eventFactory = EventFactoryContext.getInstance().getEventFactoryHome().getEventFactory(factoryName);where factoryName is the name of the CommonBaseEvent template you wish to use with the factory.
The factoryName can also be specified as a configuration parameter for a logger. See Configuring Common Base Events for an application for more details.
Related information
Configuring Common Base Events for an application
Common Base Event factory