• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Session bean extending other session bean

 
Amirr Rafique
Ranch Hand
Posts: 324
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello

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

thanks
 
Lee Kian Giap
Ranch Hand
Posts: 213
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 10124
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic