File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Session bean extending other session bean

Amirr Rafique
Ranch Hand

Joined: Nov 14, 2005
Posts: 324

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


"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.

Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 10032

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:
subject: Session bean extending other session bean
jQuery in Action, 3rd edition