0 / 0
Configuring Java Integration stage as a target

Configuring Java Integration stage as a target

You can configure Java™ Integration stage as a target to write data. Java Integration stage as a target can have one or more input links, and zero or more reject links.

  1. On the job design canvas, double-click the Java Integration stage icon.
  2. Select the Input tab and select the input link that you want to edit from the Input name (upstream stage) drop down list. By editing the input link you are setting up Java Integration stage to be the target.
  3. Specify an optional description of the input link in the General tab.
  4. Optional: Click Configure to configure additional properties. Depending on the 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 settings that you specified.
Generative AI search and answer
These answers are generated by a large language model in watsonx.ai based on content from the product documentation. Learn more