Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Doubt from the specs

 
Joe Harry
Ranch Hand
Posts: 10085
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
From the Spces 4.3.10.2,

Under EJB 3.0, it is not required that a stateless session bean have an ejbCreate method, even when it has a Home interface


Where is the Home in EJB 3.0?
 
Celinio Fernandes
Ranch Hand
Posts: 549
Eclipse IDE Google Web Toolkit Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The EJB 2.1 and earlier specifications require that the client first obtain a reference to a session bean�s
home interface, and then use the home interface to obtain a reference to the bean�s component interface.
This earlier programming model continues to be supported in the EJB 3.0.
 
Joe Harry
Ranch Hand
Posts: 10085
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you read the line once again, at the end it says 'even if it has a home interface'? WHY is that?
 
Celinio Fernandes
Ranch Hand
Posts: 549
Eclipse IDE Google Web Toolkit Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
backward compatibility with EJB 2.1
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic