wood burning stoves 2.0*
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes Session bean extending other session bean 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 "Session bean extending other session bean" Watch "Session bean extending other session bean" New topic
Author

Session bean extending other session bean

Amirr Rafique
Ranch Hand

Joined: Nov 14, 2005
Posts: 324
hello

can a session bean extend an other session beans ? I think only Entity bean can extend other Entity Beans.... please confirm

thanks


"Know where to find the solution and how to use it - that's the secret of success."
Lee Kian Giap
Ranch Hand

Joined: Jan 23, 2008
Posts: 213
session bean cannot extends session bean


spec EJB Core 4.6.2

The session bean class may have superclasses and/or superinterfaces.
A session bean class MUST NOT have a superclass that is itself a session bean class.


SCJP 6, SCWCD 5, SCBCD 5
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9520
    
    2

But just try that (One Session Bean extending another Session Bean) and to your surprise, you will see that JBoss allows that. I remember coming across such a situation once. But in any case, go by the Specs which are the Bible!


SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Session bean extending other session bean