Originally posted by Mark Herschberg:
Can I take an EJB class and use reflection to view its methods and fields? I imagine I should be able to do this, because all Java objects should support reflection (yes, technically the support is in the JVM, not the object). This also, I believe this is similar to what many vendor tools do when they automatically generate the EJB home interface, the home object, the deployment descriptor etc.
1) I assume, as with normal reflection, that I can do this on the compiled EJB, i.e. the bytecode I get when I buy an off-the-shelf EJB.
2) I am not doing this at run time. I just want to take an EJB I bought from some third party, and, say, generate a list of its methods.
Am I understanding this right?