• Post Reply Bookmark Topic Watch Topic
  • New Topic

EJB extends another EJB?

 
Timothy Toe
Ranch Hand
Posts: 156
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can a EJB (Session/Entity) extend another EJB? eg. A SFSB bookstore shopping cart extends a more generic SFSB shopping cart.
Is this kind of design often used? Is it a recommended/good to design this way?
Thanks !
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
An EJB is a component and one component cannot extend/inherit another. However, the EJB implementation class is free to extend another EJB's implementation class.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!