This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of The Career Toolkit and have Mark Herschberg on-line!
See this thread for details.
Win a copy of The Career Toolkit this week in the Jobs Discussion forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Jj Roberts
  • Carey Brown
Bartenders:
  • salvin francis
  • Frits Walraven
  • Piet Souris

About javax.ejb.SessionBean interface.

 
Ranch Hand
Posts: 126
  • 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.
 
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic