java pack
Moderators: chulett, rschirm, roy
java pack
gurus,
i am trying to use java pack transformer.
i am working on DS8 on AIX 5.3.
first i want to try with already existing .jar files (uppercase conversion).for this i dont know the .jar file name.
kindly some one mention how to set the properties in the transformer. what goes in each of these fileds...
GENERAL TAB
transformer class name....
user's classpath....
PROPERTIES TAB
user properties....
OPTIONS TAB.
jvm options....
thanks in advance.
i am trying to use java pack transformer.
i am working on DS8 on AIX 5.3.
first i want to try with already existing .jar files (uppercase conversion).for this i dont know the .jar file name.
kindly some one mention how to set the properties in the transformer. what goes in each of these fileds...
GENERAL TAB
transformer class name....
user's classpath....
PROPERTIES TAB
user properties....
OPTIONS TAB.
jvm options....
thanks in advance.
Start with some reading. JavaPack is more powerful than just allowing you to call a particular class.... instead, it extends the normal stage api and allows you to have a class that "interacts" with the DataStage engine at run-time, obtain meta data (what links are attached, what columns) and read and write data to/from such links. There is a java based api that you include in your classes to bring your java function into the flow. You include specific methods in your code that DataStage looks for at the point when it is ready present your class with a row, or ready to ask your class for a row.
JavaPack is very well documented, with examples and descriptions of the API.
Ernie
JavaPack is very well documented, with examples and descriptions of the API.
Ernie
Ernie Ostic
blogit!
<a href="https://dsrealtime.wordpress.com/2015/0 ... ere/">Open IGC is Here!</a>
blogit!
<a href="https://dsrealtime.wordpress.com/2015/0 ... ere/">Open IGC is Here!</a>
thanks for the reply but it does not work...
here is the warnin..
Java_Transformer_13,0: Error: TJClient::initialize: unable to create Java Virtual Machine; classpath = /opt/IBM/InformationServer/Server/DSEngine/java/lib/tr4j.jar
ASCL-DSJNI-00011`:`JNIWrapper: load library failed: directory C:\IBM\InformationServer\ASBNode\apps /jre\bin\j9vm , name jvm
0509-022 Cannot load module C:/IBM/InformationServer/ASBNode/apps(/jre/bin/j9vm).
0509-026 System error: A file or directory in the path name does not exist.
regards
here is the warnin..
Java_Transformer_13,0: Error: TJClient::initialize: unable to create Java Virtual Machine; classpath = /opt/IBM/InformationServer/Server/DSEngine/java/lib/tr4j.jar
ASCL-DSJNI-00011`:`JNIWrapper: load library failed: directory C:\IBM\InformationServer\ASBNode\apps /jre\bin\j9vm , name jvm
0509-022 Cannot load module C:/IBM/InformationServer/ASBNode/apps(/jre/bin/j9vm).
0509-026 System error: A file or directory in the path name does not exist.
regards
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
That most recent message is about not being able to find the error message text in the "resource" file. It's unrelated to the earlier problem, and probably solved by setting the indicated environment variable to the location of the resource file (probably DS_RESENU for US English).
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
ray,ray.wurlod wrote:That most recent message is about not being able to find the error message text in the "resource" file. It's unrelated to the earlier problem, and probably solved by setting the indicated environment ...
i see both the errors..
Java_Transformer_3,0: Error: TJClient::initialize: unable to create Java Virtual Machine; classpath = /opt/IBM/InformationServer/Server/DSEngine/java/lib/tr4j.jar
ASCL-DSJNI-00011`:`JNIWrapper: load library failed: directory C:\IBM\InformationServer\ASBNode\apps /jre\bin\j9vm , name jvm
0509-022 Cannot load module C:/IBM/InformationServer/ASBNode/apps(/jre/bin/j9vm).
0509-026 System error: A file or directory in the path name does not exist.
and
APT_CombinedOperatorController,0: Resource bundle corresponding to message key DSTAGE-TODC-00017 not found! Check that DSHOME or APT_RESPATH is set.
regards.
To fix your earlier error, unable to create Java Virtual Machine; classpath = /opt/IBM/InformationServer/Server/DSEngine/java/lib/tr4j.jar, check to make sure that in the Java directory there is a link, i.e. jre-->/IBM/InformationServer/ASBNode/apps/jre/bin. Your Java job is aborted due to the system is trying to load the tr4j.jar which contains all the .class files for Java stage.
What you need is the "java" in the /IBM/InformationServer/ASBNode/apps/jre/bin directory to execute your Java job.
Not sure what you have changed to cause the second error, DSTAGE-TODC-00017 not found.
What you need is the "java" in the /IBM/InformationServer/ASBNode/apps/jre/bin directory to execute your Java job.
Not sure what you have changed to cause the second error, DSTAGE-TODC-00017 not found.