IBM BPM, V8.0.1, All platforms > Authoring services in Integration Designer > Services and service-related functions > Access external services with adapters > Configure and using adapters > IBM WebSphere Adapters > Adapter Toolkit > Implementing code from the IBM WebSphere Adapter Toolkit > Problem determination > Monitoring and measuring performance
Monitoring Inbound Events
The adapter supports monitoring inbound events from the EIS server, in addition to the other events you are monitoring using IBM Business Monitor or WebSphere Business Events.
- Monitoring inbound events using IBM Business Monitor
- Monitoring inbound events using WebSphere Business Events
Foundation Classes Requirements
Adapters that employ the Foundation Classes for event monitoring must meet the following requirements:
- WBIMetadataDiscoveryImpl - Implementation for MetatdataDiscovery Interface
- RecordGeneratorForMonitor.java - Record generator for monitor enablement
Foundation Classes provides two different generators with or without the jaxb annotation:
- RecordGenerator
- RecordGeneratorWithAnnotation
Adapter Requirements
To enable inbound event monitoring, do the following changes:
- In the HelloWorldMetadataDiscovery class, add the below bold lines (array[5] and array[6]) to notify the monitoring inbound events support.
public MetadataConfigurationType[] getSupportedConfiguration() { return getMetadataConfiguration(); } public static MetadataConfigurationType[] getMetadataConfiguration() { MetadataConfigurationType[] array = new MetadataConfigurationType[7]; array[0] = MetadataConfigurationType.GENERATED_DATA_BINDING; array[1] = MetadataConfigurationType.GENERIC_RECORDS; array[2] = MetadataConfigurationType.GENERATED_RECORDS; array[3] = MetadataConfigurationType.INBOUND_SERVICE; array[4] = MetadataConfigurationType.OUTBOUND_SERVICE; array[5] = MetadataConfigurationType_WEBSPHEREBUSINESSMONITOR; array[6] = MetadataConfigurationType_WEBSPHERE_BUSINESS_EVENTS;- In the EMD HelloWorldInboundServiceDescription class, if the WBIMetadataDiscoveryImpl.MetadataConfigurationType_MonitorService/WebSphereBusinessEvent is interlocked by both adapter and tooling, individual adapter should return the class for the DataBindingGenerator:
//Monitor support if(WBIMetadataDiscoveryImpl.isSupportMonitor()){ dataDescription.setDataBindingGeneratorClassName ("com.ibm.j2ca.extension.dataexchange.bean.generator.RecordGeneratorForMonitor"); }else{ dataDescription.setDataBindingGeneratorClassName ("com.ibm.j2ca.extension.dataexchange.bean.generator.RecordGenerator");} dataDescription.setGenericDataBindingClassName(null);}