|
Corba .narrow method - need to pass a java interface: msg#00003lang.jython.user
Hullo I'm trying to get jython working with the java corba implementation, as client code. To do this, I build some idl, use idlj to create the .java skeletons and helpers and then build my main client jython code. For simplicity, lets say the idl is in foo.idl, and this contains a module called Foo that defines the stuff that I want to interact with. Lets say that this includes an interface called Main. Idlj will put the relevant .java files into ./Foo The jython code needs to include stuff like: from org.omg.CORBA import * # something that I cannot work out to import all of the generated java files for the Foo client: I'd have thought from Foo import *, but this doesn't seem to work - jython seems unable to identify Foo as a set of java stuff. . . Orb = ORB.init () Blah = Orb.string_to_object ("corbaloc::localhost:1234/Foo") Blah = Blah._narrow (<something that passes the java interface defined in Foo/Main.java>) The challenges seem to be getting that subdirectory of java stuff into the jython namespace, and then how to pass a java interface to a method. Any help gratefully appreciated. tia Tim Ps - my domain seems to have disappeared and my registrar still hasn't got it back, so pls copy the tim@xxxxxxxxxxxxxxxxxxxxxxx address in any responses. ------------------------------------------------------- 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: | pawt not in CVS?, Mike Hostetler |
|---|---|
| Next by Date: | jsp includes jython servlet problem, christof hoeke |
| Previous by Thread: | pawt not in CVS?, Mike Hostetler |
| Next by Thread: | Re: Corba .narrow method - need to pass a java interface, Ype Kingma |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |