File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

About javax.ejb.SessionBean interface.

 
Mellon Sun
Ranch Hand
Posts: 126
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In java EE 5 API docs,
"https://java.sun.com/javaee/5/docs/api/javax/ejb/SessionBean.html"

The SessionBean interface is implemented by every session enterprise Bean class. The container uses the SessionBean methods to notify the enterprise Bean instances of the instance's life cycle events.

EJB Core Contracts and Requirements,Page 92:

Optionally:
� The class may implement, directly or indirectly, the javax.ejb.SessionBean interface.

Apparently, this is an inconsistent, I believe there are many like this lying in Java EE API doc and other specification docs like EJB Core.
 
Christophe Verré
Sheriff
Pie
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Apparently, this is an inconsistent, I believe there are many like this lying in Java EE API doc and other specification docs like EJB Core.

There is a compatibility note at 4.3.5 The Optional SessionBean Interface. I think they did not bother updating the API. I agree that it is inconsistent, but if you want to make a session bean, you look at the spec first, not at the API. Then you know that you don't need to implement this interface.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic