File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes EJB Clarification Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Reply Bookmark "EJB Clarification " Watch "EJB Clarification " New topic
Author

EJB Clarification

kumar as
Ranch Hand

Joined: Mar 16, 2006
Posts: 36
Hi friends,

can any one please explain me the below statementabout EJB programming restrictions.

1.)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.

2.)The enterprise bean must not attempt to define a class in a package.


3.) 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.

thanks in advance
Kumar
Srinivas Kalvala
Ranch Hand

Joined: Oct 20, 2005
Posts: 257

Hi,

Regarding your first point:

It is related to,accessing some specific classes, like ServerSocket, which must be avoidable in EJB. I think there are some 8 classes which must be avoidable in typical EJB to make it adhere to the non-functional requirements.

I think remaining points are related to this issue only.

Thank you.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: EJB Clarification
 
Similar Threads
Why EJB Needs Such a Restriction?
Use of Reflection in Bean
Programming restrictions of Bean Provider
need help on EJBOverview
Reflection for setting CMP Bean Attributes