Overview

Event handling for the iWay Protocol Adapter for Connect:Direct can be configured to:

Any configuration property can be set to seed itself from an SQL statement. The SQL statement is evaluated when the adapter is activated and the properties are used in the underlying CD command.

The following is a sample output when using the Statistics mode:

<?xml version="1.0" encoding="ISO-8859-1"?>
<CDEvent>
  <CDCommand>
     <CDCommandScript>select STATISTICS limit=3</CDCommandScript>
     <CDEventDetail>
        <LogDateTime>Tue Nov 20 00:04:39 EST 2007</LogDateTime>
        <RecordCategory>CAEV</RecordCategory>
        <RecordID>LSDI</RecordID>
        <CondCode>8</CondCode>
        <Feedback>10054</Feedback>
        <MsgID>LSDI010I</MsgID>
        <MsgShortText>The call to recv() in sdipc_srvr_recv() failed
        </MsgShortText>
        <ProcNumber>0</ProcNumber>
     </CDEventDetail>
     <CDEventDetail>
       <LogDateTime>Tue Nov 20 00:04:39 EST 2007</LogDateTime>
       <RecordCategory>CAEV</RecordCategory>
       <RecordID>LIPT</RecordID>
       <CondCode>8</CondCode>
       <Feedback>0</Feedback>
       <MsgID>LIPT027I</MsgID>
       <MsgShortText>The call to recv() failed. OS message=&amp;OSMSG.
       </MsgShortText>
       <ProcNumber>0</ProcNumber>
     </CDEventDetail>
     <CDEventDetail>
      <LogDateTime>Tue Nov 20 00:04:39 EST 2007</LogDateTime>
      <RecordCategory>CAEV</RecordCategory>
      <RecordID>CMOT</RecordID>
      <CondCode>8</CondCode>
      <Feedback>10054</Feedback>
      <MsgID>LCOT000I</MsgID>
      <MsgShortText>The comm thread termination has started. 
      </MsgShortText>
      <ProcNumber>0</ProcNumber>
      <StartDateTime>Tue Nov 20 00:04:39 EST 2007</StartDateTime>
     </CDEventDetail>
  </CDCommand>
</CDEvent>

The event schema will be provided. However, the event XML message itself will only contain elements that are not null or empty.


iWay Software