JavaPack to request messages/logs from JMS/RIB
Posted: Fri Apr 29, 2011 1:43 pm
Hello,
We are trying to request and receive messages/xmllogs from the RIB (Retail Integration Bus) server using the JMS (Java Messaging Service) in real time. The only thing that we have available to us is the JavaPack, which came with our 8.x installation. We were able to replicate what the JMS does, by going through the shell scripts, grabbing the .jar files from JMS, putting them on our DS machine and executing from the command line on the DS server, and receiving the XML file to a particular folder on our server.
When we try using the command in the Java Client using the same command we get errors: java.lang.ClassNotFoundException
Here are my questions:
1. How do we pass in the parameters in the Java Client stage? If .jar file expects parameters, can they be passed in to the User's Classpath? And how?
2. If the command outputs multiple rows, how do we handle it in DS, using Java Client or Transformer? Examples, would be greatly appreciated.
3. Does the JMS client need to be installed on the DataStage server? Or can we bypass by using the existing jar programs which exist in JMS and DS?
4. Is there a particular .jar name that you can recommend, with which we can use JMS classes to pull the messages from JMS.
5. Do you have more .dsx examples which use the Java Client and Java Transformer? That would be greatly appreciated.
6. Also, any code examples using Initialize, Process, Terminate, would also be helpful.
Ernie, I have gone through your blog, which was very helpful. I have also gone through most of the posts on this site trying to answer these questions but I am still unclear.
Thanks in advance.
We are trying to request and receive messages/xmllogs from the RIB (Retail Integration Bus) server using the JMS (Java Messaging Service) in real time. The only thing that we have available to us is the JavaPack, which came with our 8.x installation. We were able to replicate what the JMS does, by going through the shell scripts, grabbing the .jar files from JMS, putting them on our DS machine and executing from the command line on the DS server, and receiving the XML file to a particular folder on our server.
When we try using the command in the Java Client using the same command we get errors: java.lang.ClassNotFoundException
Here are my questions:
1. How do we pass in the parameters in the Java Client stage? If .jar file expects parameters, can they be passed in to the User's Classpath? And how?
2. If the command outputs multiple rows, how do we handle it in DS, using Java Client or Transformer? Examples, would be greatly appreciated.
3. Does the JMS client need to be installed on the DataStage server? Or can we bypass by using the existing jar programs which exist in JMS and DS?
4. Is there a particular .jar name that you can recommend, with which we can use JMS classes to pull the messages from JMS.
5. Do you have more .dsx examples which use the Java Client and Java Transformer? That would be greatly appreciated.
6. Also, any code examples using Initialize, Process, Terminate, would also be helpful.
Ernie, I have gone through your blog, which was very helpful. I have also gone through most of the posts on this site trying to answer these questions but I am still unclear.
Thanks in advance.