*
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 Android Security Essentials Live Lessons this week in the Android 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.
 
Don't get me started about those stupid light bulbs.
 
subject: Session bean must be a top level class
 
Similar Threads
Java Beat Question - Q on transaction attributes
Doubt in SessionBean contract
What is difference between Top Level Class and Super Class?
Session bean extending other session bean
private class