|
From: Victor A. <an...@bo...> - 2005-12-08 16:42:50
|
On Thu, Dec 08, 2005 at 10:15:59AM -0600, Bill Woodward wrote:
> Good morning,
>
> I'm using Jython 2.2a1 to do some client-side testing of a J2EE
> application on a somewhat more obscure J2EE application server. In
> Jython, I am able to obtain an object from JNDI and call methods on it
> in Jython, very nicely, thank you very much. However, when I try to
> turn that Jython code into some server-side Java code, I'm running
> into a problem. In Jython, I can look at the class (using "<object
> name>.__class__"), as well as getting method and variable information
> about the class (using "dir(<object name>.__class__)"), but the actual
> Java class that is listed is an 'Impl' class.
>
> In order to use this object in Java, I need to know what interface to
> cast it to. The application server is not well documented in this
> area, and I'm having trouble finding out what the Java interface is.
> Is there any way in Jython to obtain the interface(s) that class
> implements? Or should I use the Java reflection classes to get it?
>
I am not sure about the possibilities to use jython for that task, but I
would do this with reflection classes...
--
Victor Anyakin () ascii ribbon campaign
/\ - against html mail
|