Sample Common Base Event template

The content handler uses template information to fill in blanks in the Common Base Event when the Common Base Event complete method is called.

Components that use the WebSphere Application Server event factory home can include a Common Base Event template XML file to provide data to populate Common Base Events. Information that is already supplied in the event is not overridden if the same field is supplied in the template.

The following example illustrates a Common Base Event template:
<?xml version="1.0" encoding="UTF-8"?>

<TemplateEvent 
		version="1.0.1" 
		xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
		xsi:noNamespaceSchemaLocation="templateEvent.xsd">

	<CommonBaseEvent 
		<sourceComponentId application="My Application" component="com.ibm.componentX"/>
		<extendedDataElements name="Sample ExtendedDataElement name" type="string">
			<values>Sample ExtendedDataElement value</values>
		</extendedDataElements>
	</CommonBaseEvent>

</TemplateEvent>



Related concepts
The Common Base Event in WebSphere Application Server
Related tasks
Adding logging and tracing to your application
Related reference
The structure of the Common Base Event
Reference topic    

Terms of Use | Feedback

Last updated: Feb 19, 2011 5:25:36 AM CST
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=v610web&product=was-nd-mp&topic=rtrb_cbetemplate
File name: rtrb_cbetemplate.html