Skip to Content
Apr 29, 2009 at 07:34 PM

Calling a java class from File adapter



In my sender file adapter, I want to use the option "Run operating system command before message processing". In the command I want to execute a java class (java classname.class). This java class will create a text file and that needs to picked up by the file sender file adater. I guess this will work?. Please correct me if I am wrong.

My questions are (Assuming the above will work):

1. Which location (recomended) do I need put this class file in PI box ( its win 2003 server).

2. I can't find any environment variable for classpath. How do I setup my classpath so that adapter can find this class?.

I've copied the .class file (the whole package directory) into several XI directories that contains JAR files but without any success.

Your help is appreciated.