Configuring Java Integration stage as a source

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

  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 an optional description of the output link in the General tab.
  4. Optional: Click Configure 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 Browse Objects to launch Select Bean Properties window, and select the bean properties or user-defined function (UDF) arguments to be imported in the Column Mapping Editor, and then click OK. Click Finish. You can also map JavaBean properties to existing DataStage columns, instead of creating new columns.
    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 Browse Objects and select the column metadata to be populated in the job. Click Finish.
  5. Specify required details in the Properties tab and the Advanced tab.
  6. Click OK to save the connection settings that you specified.