|
Creating a Java Bean: msg#00001lang.jython.user
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. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | trouble compiling SimpleEmbedded on mac osx, Chris Wright |
|---|---|
| Next by Date: | pawt not in CVS?, Mike Hostetler |
| Previous by Thread: | trouble compiling SimpleEmbedded on mac osx, Chris Wright |
| Next by Thread: | Re: Creating a Java Bean, Oti |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |