File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes About javax.ejb.SessionBean interface. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "About javax.ejb.SessionBean interface." Watch "About javax.ejb.SessionBean interface." New topic
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: 14687
    
  16

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: About javax.ejb.SessionBean interface.
 
Similar Threads
ejb myclipse weblogic error
Error at Deployment of my Stateful Session Bean in WAS 4.0
EJB programming restrictions - Question
Mock Exam Question
interface doubt