Hi,

You mean you want to call a method over CORBA or just
a Java method in the same JVM as the caller?

If its later then reflection would give you this.
For examples, look in "Core Java 2", Vol I, Ch 5.
The interface is a bit complex, but the end result is that you can
get a class and a method name and signature (argument and
return types) and invoke that method.  That's basically how
JavaBeans are ment to be manipulated by builders.

Hope this helps,

--Amos Shapira
WebCollage

> -----Original Message-----
> From: Thanasis Papakostas [mailto:[EMAIL PROTECTED]]
> Sent: Monday, June 26, 2000 1:11 PM
> To: [EMAIL PROTECTED]
> Subject: Urgent problem-Please help!
>
>
> Hi,
>     I 'm working on a project and I have encountered a
> problem. "I have
> to call a method of a class."
>     It seems quite simple till here. However the name of the class and
> the method will be known at run-time.
>     They will be retrieved from a database as Strings. The
> communication
> beween the classes is handled by CORBA.
>     The Reflection and Introspection APIs aren't suitable
> here because I
> don't even know the name of the class at
>     deployment time in order to get a reflection of the constructors,
> methods and Fields. My actual question is
>     "Can I call a method whose name is stored in a String? If
> Yes HOW?"
>
>     Thanks in advance
>
> ______________________________________________________________
> _____________
> To unsubscribe, send email to [EMAIL PROTECTED] and
> include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources:
http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to