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!
    JavaIntegration_Step1
  • Step 2 – add stages to job
    JavaIntegration_Step2
  • Step 3 – open the stage editor
    JavaIntegration_Step3
  • Step 4 – Enter classpath and enter or select class JavaIntegration_Step4
  • Step 5 – Press Configure button.  Then press ‘Browse Objects’ to select bean properties
    JavaIntegration_Step5
  • Step 6 – Compile and run the job
    JavaIntegration_Step6
  • 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.

7 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.

      E:\IBM\InformationServer\Clients\Classic>
      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(JavaBeansTransformer.java:29)
    at com.ibm.is.cc.javastage.connector.CC_JavaAdapter.run(CC_JavaAdapter.java:442)
    at com.ibm.is.cc.javastage.connector.CC_JavaAdapter.run (CC_JavaAdapter.java: 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(JavaBeansTransformer.java:29)
    at com.ibm.is.cc.javastage.connector.CC_JavaAdapter.run(CC_JavaAdapter.java:442)
    at com.ibm.is.cc.javastage.connector.CC_JavaAdapter.run (CC_JavaAdapter.java: 457)

    any ideas as to what is causing this issue…?

    thx,
    Scott

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s