Configuring Java Integration stage as a source (DataStage)

You can configure the Java™ Integration stage to process data as a source for one or more output links.

Procedure

  1. On the job design canvas, double-click the Java Integration stage icon.
  2. Select the Output tab and select the output link that you want to edit from the Output name (downstream stage) drop down list. By editing the output link you are setting up Java Integration stage to be the source.
  3. Specify a description of the output link in the Stage tab.
  4. Optional: Open Usage panel to configure additional properties. Depending on your user code the Custom Property Editor, Column Mapping Editor, or the Column Metadata Importer window is displayed.
    1. You need to specify values for the properties. If your user code exposes user-defined properties by using the Processor.getUserPropertyDefinitions() method, the Custom Property Editor window is displayed where you can specify the value of each property.
    2. If your user code uses JavaBeans in its interface (by implementing the Processor.getBeanForInput() and Processor.getBeanForOutput() methods), the Column Mapping Editor window is displayed. Populate DataStage® column schema based on the JavaBeans properties and then map JavaBeans properties to the DataStage columns. If you create a job where the links contain no columns, then the initial Column Mapping Editor contains empty tables. Click the Edit icon and Browse Properties, and select the bean properties or user-defined function (UDF) arguments to be imported in the Column Mapping Editor, and then click Import. Click Apply and Return. You can also map JavaBean properties to existing DataStage columns instead of creating new columns. Click the DataStage column name to change a DataStage column to map to.
    3. If your user code implements the Processor.getColumnMetadataForInput() and Processor.getColumnMetadataForOutput() methods instead of implementing the Processor.getBeanForInput() and Processor.getBeanForOutput() methods, the Column Metadata Importer window is displayed. In the Column Metadata Importer window select the column metadata to populate DataStage column schema from a list of ColumnMetadata instances that are returned by the Processor.getColumnMetadataForInput() and Processor.getColumnMetadataForOutput() methods for each link. Click the Edit icon and Browse Properties to select the column metadata to be populated in the job. Click Apply and Return.
  5. In the Stage tab, specify required details in the Properties panel and the Advanced panel.
  6. Click Save to save the connection settings.