|
From: Bill W. <wp...@gm...> - 2005-12-08 16:16:13
|
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.=20 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? TIA, - Bill -- Bill Woodward wp...@sa... http://www.saifa.net "I have more trouble with D. L. Moody than with any other man I ever met." -- D. L. Moody s/D. L. Moody/Bill Woodward/g |