Win a copy of Java 9 Revealed this week in the Features new in Java 9 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!