From: Frank C. <fc...@pu...> - 2003-02-06 05:00:48
|
I have a Java method that I want to call that takes as a parameter a simple Java Bean. Is there an easy way to create a Java Bean in a Jython script? The method I need to call is: makeRemoteCall( twsDocBean theRequest ) The twsDocBean class in Java looks like this: public class twsDocBean( private int wordcount; private int delay; public twsDocBean(){} public int getWordcount() { return wordcount; } public void setWordcount( int wc ) { wordcount = wc; } ... well you get the idea. twsDocBean is a simple Bean with typical getters and setters. I can write the twsDocBean as a Java class, compile and call from Jython using Jython object reflection. My question is could I skip the coding-it-in-Java step and directly implement twsDocBean in Jython? -Frank -- Frank Cohen, Founder, http://www.PushToTest.com, phone: 408 374 7426 PushToTest offers free open-source test software and global services solutions that test, monitor and automate Web Service systems for functionality, scalability and performance. |