Calling a java class from peoplecode
I'm trying to learn how to call a java program from peoplecode. I created a simple java program, compiled it, and placed it in the class directory in <PS_HOME>. I'm able to instantiate the java program in peoplecode using GetJavaClass. However, when I try to call a method within the class I keep getting an error that the method is not found in the class. Hopefully someone can point out what I'm missing ...
The java source:
public class MyTest {
public String getresult(String inputString)
{
return inputString;
}
}
The peoplecode I'm using is:
Local JavaObject &myJava;
Local string &strResult;
&myJava = GetJavaClass("MyTest");
The java source:
public class MyTest {
public String getresult(String inputString)
{
return inputString;
}
}
The peoplecode I'm using is:
Local JavaObject &myJava;
Local string &strResult;
&myJava = GetJavaClass("MyTest");
0