IBM WebSphere Adapters Network Card User Manual


 
Example of log message for the inbound scenario with confidential tracing
property enabled
public javax.resource.cci.Record getRecordForEvent(com.ibm.j2ca.extension.eventmanagement.Event event)
throws javax.resource.ResourceException,
javax.resource.spi.CommException {
logger.logConfidential(Level.INFO, LogUtilConstants.ADAPTER_RBUNDLE,
"com.ibm.helloworld.inbound.HelloWorldEventStoreWithXid",
"getRecordForEvent()", "10", new Object[] { "test" });
return null;
}
Note: In the previous code snippets, getLogUtils() and logger are instances of the
LogUtils class.
Monitoring and measuring performance
The purpose of monitoring is to observe the progress of execution of WebSphere
Business Integration applications, and the WebSphere Business Integration system
itself, and publish the results of this observation.
Monitoring can be accomplished by:
v Using the Common Event Infrastructure (CEI), a set of modular event processing
components that provide functions to capture information about significant
system or business occurrences.
v Using the Performance monitoring infrastructure (PMI) to collect data, such as
average response time and total number of requests, from various components
in a server runtime environment, and organizes the data into a tree structure.
v Using Application response measurement (ARM) to monitor the availability and
performance of applications.
Common Event Infrastructure (CEI):
The Common Event Infrastructure (CEI) is a set of modular event processing
components that provide functions to capture information about significant system
or business occurrences.
WebSphere Process Server includes the Common Event Infrastructure technology,
which adapters use to create, transmit, persist and distribute events.
Note: If an adapter is running on a broker that does not use the IBM CEI
technology but instead uses its own event monitoring technology; that broker can
also plugin its monitoring infrastructure with the adapters by implementing the
interfaces described in the sections that follow and by optionally using schema
definitions (.xsd and .mes files).
EventSourceContext
The EventSourceContext interface provides the context for a monitored component
and is the starting point for the adapters. The EventSourceContext interface
provides APIs to obtain event source, which is an application or component that
submits an event creation request to CEI. Each event source defines a set of event
points, which represent the points where CEI events are triggered.
/**
* Provides the context for a monitored component.
*/
package com.ibm.j2ca.extension.monitoring.CEI;
WebSphere Adapter development overview 181