targetNamespace="http://www.ibm.com/xmlns/prod/websphere/scdl/eis/6.0.0:JCAAdapter"
xmlns:er="http://www.ibm.com/xmlns/prod/websphere/recovery/6.0.0/es/eventpayloads"
>
<Event name="ResourceAdapter.Polling.STARTED" situationType=
"STATUS" situationCategory="ReportSituation"
reasoningScope="EXTERNAL" parent="WBI.MonitoringEvent">
<Payload>
<Data name="PollFrequency" type="int" minOccurs="0" maxOccurs="1"/>
<Data name="PollQuantity" type="int" minOccurs="0" maxOccurs="1"/>
</Payload>
</Event>
3. Invoke Events
import com.ibm.j2ca.extension.logging.internal.cbe.EngineData;
...
CBEEngineData engineData = CBEEngineDataFactory.getEngineDataForEventType("Polling");
//This will instantiate the EngineData class for user defined event e.g "Polling".
engineData.setValue("EventAction","STARTED");
//This will set the user defined action e.g. "Started"
engineData.setValue("PollFrequency", activationSpec.getPollPeriod());
//This will set the user defined arg
engineData.setValue("PollQuantity", activationSpec.getPollQuantity());
//This will set the user defined arg
Performance monitoring infrastructure (PMI) for resource adapters:
The Performance Monitoring Infrastructure (PMI) is the underlying framework in
WebSphereApplication Server that gathers performance data from various runtime
resources such as adapters.
The purpose of monitoring is to observe the progress of execution of WebSphere
Business Integration applications, and the WebSphereBusiness Integration system
itself, and publish the results of this observation. By using Performance Monitoring
Infrastructure (PMI), you can observe the progress of adapters running in the
server runtime environment and other business integration applications, and
publish the results. PMI collects data, such as average response time and total
number of requests, from various components in the server,and organizes the data
into a tree structure. Youcan observe data through the Tivoli Performance Viewer,
a graphical monitoring tool that is included with WebSphereApplication Server..
Youcan monitor the performance of the adapters by having PMI collect data at the
following points:
v
vInboundEventRetrieval:
Will monitor performance of retrieving events fromthe EIS. It enables
monitoring of entering, exiting, failing of the EventManager.getEvents() method.
vInboundEventDelivery:
Will monitor the performance when resourceadapter deliver data to the
endpoint, which conveys changes in or general information from the EIS. It
enables monitoring of entering, exiting, failing of the EventSender.doSendEvent()
method.
vOutbound:
Will monitor the performance of outbound processing of a resourceadapter. It
enables monitoring of entering, exiting, failing of the WBIInteraction.execute()
method.
Extending PMI on WebSphere Process Server:
Toadd a user-defined element or method into the list of monitorable components
you need to modify code and schema files.
WebSphereAdapter development overview 185