| Author |
About javax.ejb.SessionBean interface.
|
Mellon Sun
Ranch Hand
Joined: Feb 20, 2003
Posts: 126
|
|
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.
|
SCJP,SCWCD1.3,SCWCD1.4,SCJD,SCBCD5,SCEA5
|
 |
Christophe Verré
Sheriff
Joined: Nov 24, 2005
Posts: 14685
|
|
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.
|
[My Blog]
All roads lead to JavaRanch
|
 |
 |
|
|
subject: About javax.ejb.SessionBean interface.
|
|
|