File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes need help on EJBOverview Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "need help on EJBOverview" Watch "need help on EJBOverview" New topic

need help on EJBOverview

Loka Nalla

Joined: Apr 20, 2006
Posts: 12

I see a line in study guide in the EJB Overview chapter 1.

Could anybody explain me what does the below line say? If possible an example would help me to understatnd.

"The enterprise bean must not attempt to gain access to packages and classes that the usual rules of the Java programming language make unavailable to the enterprise bean"

Thank you
Mikalai Zaikin
Ranch Hand

Joined: Jun 04, 2002
Posts: 3322
This basically means that Bean Provider *must* *not* use Java Reflection API to get access to some variables or methods which are not accessible via regular Java calls.

For example, using Java Reflection, it is possible to get/set private variables from other classes. Doing this will break EJB Container contract which provides security, threading, pooling, etc.

Java Platform, Enterprise Edition 6 Web Services Developer Certified Expert Exam Study Guide and Quiz
Exam 1Z0-810: Upgrade to Java SE 8 Programmer Study Guide and Quiz
I agree. Here's the link:
subject: need help on EJBOverview
It's not a secret anymore!