• 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: 10128
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!
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!