According to Spec we must not use java Reflection API on Enterprise bean.we have getEJBMetaData method to get more specific class information.This method is in EJBHome Not in EJBLocalHome.Now Tell me How can I achieve that functionality for local clients.
interface EJBMetaData is intended to be used by the tools for obtaining the information about the bean. There is very little you can do systematically as a bean provider using that interface.
I guess in the book when they say there is Reflection API, for the container it is there but not for the bean provider.
You are right when you say Reflection API is denied in the spec, but that is for bean provider contract.