Drag an External Table Polling Stream operator from the Palette to the Design view.
Double-click the External Table Polling Stream operator.
The property editor opens.
Click Select Table.
The Select External Table To Poll wizard appears.
In step 1 of the wizard, do the following:
In step 2 of the wizard, do the following:
In step 3 of the wizard, do the following:
The wizard displays the column or columns that you specified in step 2. Select the one or more columns that uniquely identify each record.
The operator uses this information to keep track of the last record that was retrieved. If you do not select any of the columns, then each fetch will start at the beginning of the table.
In the Interval field and drop-down list, specify how often you want to retrieve records from the table.
In the Record Size field, specify the number of records to retrieve each time.
If you want to delete the records from the table after they have been fetched, then select the Delete Records check box.
If you do not select the one or more columns that uniquely identify each record, then selecting the Delete Records check box will ensure that you do not keep retrieving the same records.
In the JNDI Name field, type the JNDI name of the database resource (for example, jdbc/iepseDerbyNonXA).
Click Finish. The property editor displays the values that you specified.
By default, the Preserve Last Fetched Record check box is selected. This setting indicates that if the event process is redeployed, then the operator starts retrieving records where it left off.
If you leave the Preserve Last Fetched Record check box selected, then you must specify a table name in the Last Fetched Record Table field. This table will be created in the IEP database, not in the external database table.
If you want the operator to go back to the beginning of the table instead, then clear the Preserve Last Fetched Record check box.
If you are retrieving records from an Oracle external database, then examine the Data Type column. If a data type is not one of the supported IEP data types, then change the data type to a supported IEP data type. For example, change the DECIMAL data type to the INTEGER data type.
(Optional) In the SELECT area, modify any of the default expressions by adding a SQL function.
(Optional) Click the Documentation tab and supply notes on this component.
Click OK.