IBM WebSphere Adapters User Manual page 187

Version 6 release 2
Table of Contents

Advertisement

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
v Using the Performance monitoring infrastructure (PMI) to collect data, such as
v Using Application response measurement (ARM) to monitor the availability and
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;
components that provide functions to capture information about significant
system or business occurrences.
average response time and total number of requests, from various components
in a server runtime environment, and organizes the data into a tree structure.
performance of applications.
WebSphere Adapter development overview
181

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Websphere adapter toolkit

Table of Contents