hi;
section 24.1.2 defines restrictions on EJB programming.
A part of the restriction around the classloaders issue seem kinda strange
to me.
my confusion is around the "The enterprise bean must not attempt to obtain
the current class loader".
if dynamic classloading of a class which resides in the EJB JAR is needed,
from within an EJB method call, than using
Thread.currentThread().getContextClassLoader() is the only way you can go
(class.forName() would not work due to packaging issues and classloading
hirarchies).
so what does this restriction exactly mean? other restrictions (like the
reflection one) seem to have a more subtle definition that can be
interpreted in many ways but this one is very explicit.
what do you think? (I know most containers don't give a sh%# about these
restrictions but does this restriction imply a no dynamic classloading
policy in EJBs?)

____________________
Guy Katz
Allot Communications
[EMAIL PROTECTED]
tel: +972 9 7619288
fax: +972 9 7443626

===========================================================================
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