WebSphere Application Server Network Deployment, Version 6.0.x     Operating Systems: AIX, HP-UX, Linux, Solaris, Windows

Sample Common Base Event instance

The following XML document is an example of a Common Base Event (CBE) instance that is generated by a WebSphere Application Server application.
<CommonBaseEvent  creationTime="2004-09-18T04:03:28.484Z"
			globalInstanceId="myhost:1095479647062:1899"
			msg="WSVR0024I: Server server1 stopped"
			severity="10"
			version="1.0.1">

	... several extendedDataElements for WebSphere Application Server internal use only ...

<sourceComponentId 	component="com.ibm.ws.runtime.component.ServerCollaborator"
				componentIdType="Unknown"
				executionEnvironment="Windows 2000[x86]#5.0"
				instanceId="myhost\myhost\server1"
				location="myhost"
				locationType="Hostname"
				processId="1095479647062"
				subComponent="Unknown"
				threadId="Alarm : 0"
				componentType="http://www.ibm.com/namespaces/autonomic/WebSphereApplicationServer"/>
	
	<msgDataElement msgLocale="en_US">
		<msgCatalogTokens value="server1"/>
		<msgId>WSVR0024I< /msgId>
		<msgCatalogId>WSVR0024I< /msgCatalogId>
		<msgCatalog>com.ibm.ws.runtime.runtime< /msgCatalog>
	</msgDataElement>
	
	<situation categoryName="ReportSituation">
		<situationType xsi:type="ReportSituation" reasoningScope="EXTERNAL" reportCategory="LOG"/>
	</situation>

</CommonBaseEvent>
A number of extendedDataElement elements in the XML are used by WebSphere Application Server, but are not for application use because these elements might change.

The CommonBaseEvent element defines the CBE instance. This element has a set of attributes that are common for all CBEs. This set includes the extensionName attribute, which defines the type or class of the CBE instance, the creation time, severity, and priority.

Nested within the CommonBaseEvent element are elements giving more detail about the situation. The first of these elements is the situation element. This classification is standardized.

The CommonBaseEvent element also includes the sourceComponentId and the (optional) reporterComponentId elements. The sourceComponentId element describes where the situation occurred; the reporterComponentId describes where the situation is detected. If the sourceComponentId and the reporterComponentId elements are the same, the reporterComponentId element is omitted.

The attributes of both the sourceComponentId and the reporterComponentId elements are the same. They identify the component type, name, operating system, and network location. The content of these attributes provides vertical correlation of the stack of IT resources that are active when the CBE is created.

Also included in the CommonBaseEvent element are contextDataElements elements that describe the context in which the situation occurred. This context correlates CBE instances that are part of the same work. This correlation is called horizontal correlation because an instance of a particular context type correlates events at the same level of abstraction, for example at the business level, the application level, or at the middleware level.

FExtended data elements contain additional data that is used to describe a situation. In this example, an extended data element is added by WebSphere Application Server to describe the Java 2 Platform, Enterprise Edition (J2EE) component that generated the CBE instance and some application data.




Related concepts
The Common Base Event in WebSphere Application Server

Related tasks
Add logging and tracing to your application

Related reference
The structure of the Common Base Event

Reference topic    

Terms of Use | Feedback

Last updated: Dec 11, 2005 4:07:15 PM CST
http://publib.boulder.ibm.com/infocenter/wasinfo/v6r0/index.jsp?topic=/com.ibm.websphere.nd.doc/info/ae/ae/rtrb_cbesample.html

© Copyright IBM Corporation 2004, 2005. All Rights Reserved.
This information center is powered by Eclipse technology. (http://www.eclipse.org)