Hi Anthony,

You cannot "dynamically cast" in Java (doesn't make sense!), but you CAN dynamically
evoke methods using reflection.

So, just reflectively evoke "create" on the Object retreived from JNDI to get the
EJBObject, and once again reflectively evoke the business method of your choosing on 
the
resulting Object to achieve your goal.

Gene
--- Catalfano Anthony <[EMAIL PROTECTED]> wrote:
> I'm writing a diagnostic utility servlet that will allow our operations
> people to enter 3 parameters: PROVIDER_URL, JNDIHomeName, and BeanName. The
> servlet needs to dynamically look up the home, dynamically cast it to the
> JNDIHomeName param, call create() on the Home, dynamically cast the bean the
> the BeanName. Wondering if anyone has code that will do this.
>
> Thanks
>
> Anthony Catalfano
> Information Technology Analyst
> Deere & Company
> 309-748-5201
>
> ===========================================================================
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff EJB-INTEREST".  For general help, send email to
> [EMAIL PROTECTED] and include in the body of the message "help".
>


__________________________________________________
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to