Hi,
    I need to invoke a java instance method, from a python script (passing some method parameters). Then to obtain the result within the python script. I tried to create an object of my java class(inside a jython script), but it started giving some syntax errors. Probably I must not have done it in the correct way. What is the way that I can do this using jython. I could not find any documentation on this, the only documentation there, is on embedding jython [1]. There it is stated how to access a python method within java. What I want to do is the other way around.


public class WSClient {
 
    public void echo(String str){
        System.out.println(" echo() invoked!");
    }

}

[1] - http://jython.org/Project/userguide.html#embedding-jython
--
Regards,
Heshan Suriyaarachchi

http://heshans.blogspot.com/