This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes need help on EJBOverview Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Reply Bookmark "need help on EJBOverview" Watch "need help on EJBOverview" New topic
Author

need help on EJBOverview

Loka Nalla
Greenhorn

Joined: Apr 20, 2006
Posts: 12
Hi,

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
Loka
Mikalai Zaikin
Ranch Hand

Joined: Jun 04, 2002
Posts: 3099
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.


Free SCDJWS 5.0 Study Guide - SCDJWS 5.0 Quiz (How to get SCDJWS 5.0 Quiz)
Java Platform, Enterprise Edition 6 Web Services Developer Certified Expert Exam Study Guide and Quiz
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: need help on EJBOverview
 
Similar Threads
enitity bean with jbossand xdoclet
package and class question
Difference b/w Simple Java Bean and Enterprise Java Bean(EJB)
eclipse 3.1 , xdoclet 1.2.2 , jboss 3.2.3
EJB restrictions