This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Head first EJB question  RSS feed

 
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
Boost this thread!