Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Head first EJB question

 
Bin Lu
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
P. 672 Q.45 which methods from EntityContext interface can be invoked, regardless of transaction context?
A. getEJBHome()
B.getEJBObject().
I remember in ejbCreate(): disallowed to call getEJBObject?
Any comment?
 
Vishwa Kumba
Ranch Hand
Posts: 1066
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
getEJBHome() can be called.
But getEJBObject() and getPrimaryKey() methods cannot be called in the ejbCreate() methods of entity bean.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic