|
Re: Creating a Java Bean: msg#00040lang.jython.user
[ Frank Cohen ] > 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, not knowing too much about java beans, I think the keypoint is: is makeRemoteCall a method of a java class, and if yes: what type of parameter does it expect ? Best wishes, Oti. __________________________________________________ Do you Yahoo!? Yahoo! Shopping - Send Flowers for Valentine's Day http://shopping.yahoo.com ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Corba .narrow method - need to pass a java interface, Oti |
|---|---|
| Next by Date: | Are there any Visualization tools available to Jython., Jen Chang Chen (陳仁彰) |
| Previous by Thread: | Creating a Java Bean, Frank Cohen |
| Next by Thread: | pawt not in CVS?, Mike Hostetler |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |