• 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.
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!