How to: |
The standard event processing with row removal technique assumes that the source table is used to pass the data to the adapter and that the table rows are not required to persist. The Table Listener periodically queries the source table. When it finds a row, it reads it and returns it to the file disposition specified when the port is configured via an XML document. To ensure that the row is not read again when the listener next queries the table, the listener deletes the row from the table.
Note: Event processing may be limited for some non-relational databases due to the functionality of the database and its interaction with the iWay server component. For more information on the iWay server component, see the iWay Data Adapter Administrator User's Guide or consult your DBA.
The following figure illustrates standard event processing with row removal.
The process repeats itself.
To implement the standard event processing with row removal technique:
SQL Query: the SQL SELECT statement that identifies the source table to which the adapter listens and with which it queries the table.
Post Query: the query that identifies the rows that the adapter automatically deletes from the table.
For detailed instructions about configuring a listener, see How to Create a Channel. For information about Post query operators, see The Post-query Parameter Operators.
In this example, you listen to the stock_prices table using the row removal technique.
SQL> describe stock_prices Name Null? Type ----------------------------------------- -------- ----------- RIC NOT NULL VARCHAR2(6) PRICE NUMBER(7,2) UPDATED DATE
When a record is added to stock_prices, an XML document is generated with the contents of the record.
The location to which the document is saved is specified in the configuration of the port disposition property (using the File protocol) associated with this Table Listener.
After generating the document, the record is deleted from the table.
For a description of these properties, see The Post-query Parameter Operators.
iWay Software |