Java Integration Stage (3 of 3)

I hope you would have read the Part1 and Part2 of this series.

In this blog, I will present simple 6 steps to Create and Run a Java Integration stage job

  • Step 1 – Write your Java code!
  • Step 2 – add stages to job
  • Step 3 – open the stage editor
  • Step 4 – Enter classpath and enter or select class JavaIntegration_Step4
  • Step 5 – Press Configure button.  Then press ‘Browse Objects’ to select bean properties
  • Step 6 – Compile and run the job
  • Note: These are steps to give an idea on how Java Integration Stage works. You may need to do some more fine tuning to make your job actually work. You can find those details here.
  • Here are some Java Integratio​n Stage Samples for IS 9.1.

9 thoughts on “Java Integration Stage (3 of 3)

  1. Hi Namit,
    Thanks for this information. I have already created ETL jobs through datastage. I want to call these ETL jobs from my Java class. Basically my java class is a batch and that batch should call ETL jobs created through Data stage. It would be great help if you can resolve this issue.

    Thanks in advance.

    • Hi Namit,

      I have tried dsjob command. But I am not able to connect with Infosphere server. I am running following command on cmd.

      dsjob -domain NONE -user dsadm -password XXX -server HQDVIFS001:9080 -lprojects

      Status cods=81005

      I can not understand the reason for this status code. Can you please help me in this?

  2. Namit,

    Tried building working test on your example above, but when I run the DS Job, it is erroring out:

    Java_Integration_1,1: com.ascential.e2.common.CC_Exception: java.lang.NullPointerException
    at JavaBeansTransformer.process(
    at ( 457)

    Any ideas as to the cause of this…?

    • Hi Scott,
      Sorry for the delay in replying. Things would have changed after I wrote the blog. So I would recommend you to go to the official site and try examples listed there. Please google on “java integration stage in datastage” and the first two should take you to the correct place. I will also update my post with this recommendation.
      Thank you

  3. Tried this example, but it is erroring out when I run the DS Job:

    Java_Integration_1,1: com.ascential.e2.common.CC_Exception: java.lang.NullPointerException
    at JavaBeansTransformer.process(
    at ( 457)

    any ideas as to what is causing this issue…?


  4. Hi Namit,

    please I need more simplifying for this stage as I can’t find any related document even from IBM
    all i need
    1) sample java code even with one function and one input and output
    2) how to configure DataStage pallet property as i even can’t call jar in calsspath as i can’t know if classpath property for jar path or class path ??

    sorry Namit and thanks for your help as i need it for a critical issue in my job

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s