Win a copy of The Business Blockchain this week in the Cloud forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

MK Notes and EJB in Action doubts

 
Deepak Jain
Ranch Hand
Posts: 637
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
MK Notes:
A session bean class MUST NOT have a superclass that is itself a session
bean class.

EJB In Action 3.0:
A session bean class can subclass another session bean or any other POJO.
For example, a stateless session bean named BidManager can extend
another session bean PlaceBidBean in the following way:
@Stateless
public BidManagerBean extends PlaceBidBean implements BidManager {
...
}


Who is correct. I tried the code where a session bean was subclassing another session bean and it worked perfectly.
 
Deepak Jain
Ranch Hand
Posts: 637
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please take time to respond to this question.
 
Reza Rahman
author
Ranch Hand
Posts: 580
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Deepak,

Sorry for the delay in replying...just came back from vacation...

That is in errata in the book. Early discussions in the EG was towards what we wrote, but it changed in the final spec. We are trying again in EJB 3.1 to get this needless restriction removed...

Best regards,
Reza
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic