logo       

Creating a Java Bean: msg#00001

lang.jython.user

Subject: Creating a Java Bean

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>
Google Custom Search

News | FAQ | advertise