This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes Session bean must be a top level class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "Session bean must be a top level class" Watch "Session bean must be a top level class" New topic
Author

Session bean must be a top level class

Anuj Singhal
Greenhorn

Joined: Oct 17, 2003
Posts: 23
It is mentioned about session bean class in section 4.6.2 of EJB 3.0 specification, "The class must be a top level class."
In the same section it is also mentioned, "The session bean class may have superclasses and/or superinterfaces."
Are not these two statements contradictory to each other?
Anuj Singhal
Greenhorn

Joined: Oct 17, 2003
Posts: 23
I got the answer I was looking for.
My understanding of top level class was not correct.
A class can be a top level class and can have super class at the same time.
gurpeet singh
Ranch Hand

Joined: Apr 04, 2012
Posts: 924
    
    1

a top level class means it shouldnt be an inner class.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Session bean must be a top level class