Seems pretty clear to me. If you need to call setAccessible on a field
or method inorder to access it, you've violated the EJB spec.

--Victor

John Harby wrote:

> Section 25.1.2 of the EJB spec (several versions) states:
>
> "The enterprise bean must not attempt to query a class to obtain
> information
> about the declared members that are not otherwise accessible to the
> enterprise bean because of the security rules
> of the Java language. The enterprise bean must not attempt to use the
> Reflection API to access information that the security rules of the Java
> programming language make unavailable."
>
> Can someone translate this as to when and where I can use reflection in an
> EJB? Is it forbidden only for non-public methods? - Thanks in Adv.
>
> _________________________________________________________________
> Send and receive Hotmail on your mobile device: http://mobile.msn.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".
>

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