Testing your event source without an Enterprise Console server

Ultimately, testing an event source for the Enterprise Console Web Services Adapter requires an Enterprise Console installation and event class definitions matching the events arriving at the Enterprise Console Web Services Adapter.

However, it is possible to validate connectivity and message format without an Enterprise Console installation by following these steps:

  1. Install the Enterprise Console Web Services Adapter..
  2. Modify the logging settings by replacing the file <adapter_install_dir>/conf/logging.properties with the file <adapter_install_dir>/conf/logging.dev.properties. This configuration file will force the adapter messages to be displayed on the console where the adapter is started.
  3. Start the Enterprise Console Web Services Adapter.

    Make sure you start the adapter with the batch file and not as a Windows service, otherwise you will not have a console to see the messages.

  4. Send some the events. Refer to section Web Services interface definition for the correct port definition and address.

You should see a screen output similar to the one show here for each event correctly processed in the Enterprise Console Web Services Adapter:

Oct 19, 2005 10:12:59 AM com.ibm.wtci.cbetec.CbeToTec
convertCbeArrayToTecEventString(cbeEvents) FINER: ENTRY
[org.eclipse.hyades.logging.events.cbe.impl.CommonBaseEventImpl@48ded83
(creationTime: 2005-10-19T14:12:54.191Z, globalInstanceId: null,
elapsedTime: <unset>, extensionName: Tutorial_Event_Type,
localInstanceId: null, msg: Common Event Infrastructure Tutorial,
priority: <unset>, repeatCount: <unset>, sequenceNumber:
<unset>, severity: 10, version: 1.0.1, any: null, situation:
org.eclipse.hyades.logging.events.cbe.impl.SituationImpl@2069ad83
(categoryName: ReportSituation, situationType:
org.eclipse.hyades.logging.events.cbe.impl.ReportSituationImpl@3799ad83
(reasoningScope: INTERNAL) (reportCategory: Succeeded)),
associatedEvents: null, contextDataElements: null, extendedDataElements:
null, msgDataElement: null, reporterComponentId: null,
sourceComponentId:
org.eclipse.hyades.logging.events.cbe.impl.ComponentIdentificationImpl@17b8ad83
(application: Event Source, component: source.EventSource,
componentType: http://www.ibm.com/namespaces/autonomic/Tivoli/Samples,
componentIdType: Sample, executionEnvironment: null, instanceId: null,
location: unknown, locationType: hostname, processId: null,
subComponent: createEvent(), threadId: null))] 


Related topics
Adapter Installation overview
Starting the adapter
Enterprise Console event class definitions
Web Services interface definition
Event source samples


Parent topic
Application Development