IBM WebSphere Adapters Network Card User Manual


 
d. If eventPoint is enabled, then fire event for Entry, Exit and Failure is
invoked.
Entry event is fired in the beginning of the method call, exit event is fired in
the end of the method call and failure event is fired in case of exception.
For example we can invoke failure event by following API call.
if(ep.isEnabled()) {
ep.fire(new String[]{"FailureReason"},
new Object[]{ex.toString()});
}
Extending PMI on WebSphere Application Server:
Extending PMI on WebSphere Application Server does not require you to add
content into schema files (.xsd and .mes files).
Invoke PMI
Invoking PMI statistics on WebSphere Application Server can be done by following
the steps listed below.
Note: The steps below describe how to invoke PMI statistics around a method
named myOutbound.
1. Import com.ibm.j2ca.extension.monitoring.CEI.EventPoint;
2. Define a unique PMI event point name.
For example String eventName = uniqueAdapterID + "##" + "myOutbound";
3. 3. Get an instance of EventPoint: for each each eventAction ENTRY, EXIT,
FAILURE.
EventPoint ep =
(EventPoint)(EventPoints.INSTANCE.getEventPoints(eventName,eventAction))
4. 4. If eventPoint is enabled fire event for Entry, Exit and Failure.
Entry event is fired in the beginning of the method call, exit event is fired in
the end of the method call and failure event is fired in case of exception. For
example we can invoke failure event by following API call:
if(ep.isEnabled()) {
ep.fire(new String[]{"FailureReason"}, new Object[]{ex.toString()});
}
Application response measurement (ARM):
Application response measurement (ARM), an API jointly developed by an
industry partnership, monitors the availability and performance of applications.
ARM is an approved standard of The Open Group.
To ensure that requests are performing as expected in a multi-tiered heterogeneous
server environment, you must be able to identify requests based on business
importance. In addition, you must be able to track the performance of those
requests across server and subsystem boundaries, and manage the underlying
physical and network resources used to achieve specified performance goals.
You can collect this performance data by using versions of middleware that have
been instrumented with the Application Response Measurement (ARM) standard.
Combining ARM calls within your application with an ARM agent, users of your
application will be able to answer questions like the following:
WebSphere Adapter development overview 187