hi,
We usually look up things like this:
CustomerHome home = (CustomerHome) context.lookup("CustomerHome");
Customer customer = home.findByPrimaryKey(key);
etc
But say I just have a Customer, and I don't necessarily know its home name is
"CustomerHome". After all, it could be "com.foo.CustomerHome" or "PoodleHome".
Is it possible to derive this home name from just a Customer? Perhaps by looking
in the JNDI environment? context.lookup("java:comp/env/something/something")?
thanks in advance,
david
--
David Sims [EMAIL PROTECTED]
Sims Computing, Inc. www.simscomputing.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".