This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Inheritance in Java, J2EE

 
Nitin Bansal
Greenhorn
Posts: 8
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How to design inheritance for EJB, especially enity beans
 
Bill Siggelkow
Ranch Hand
Posts: 57
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Inheritance in EJBs is not straightforward ... the main thing to keep in mind is that your bean implementation class can inherit from a base class ... however, your home and remote interfaces generally cannot. Typically, I use inheritance in EJBs only to provide some default implemenation of methods (such as the setEntityContext()), ejbActivate(), ejbPassivate(), etc. In this sense, this pattern is more of an adapter.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic